#crash part

88 messages · Page 1 of 1 (latest)

hazy lance
#

why would you want to crash the players game ?

bronze ginkgo
#

uhh

#

make it spawn a billion parts

#

when touched

#

99999999999999999999

#

at once

#

that iwll probably do it

hazy lance
#

or just kick the player

bronze ginkgo
#

mines better

hazy lance
#

alr

bronze ginkgo
#

just ask ai

hazy lance
bronze ginkgo
#

"when i touch part make it spawn a billion parts"

hazy lance
bronze ginkgo
#

waste?

hazy lance
#

why tf it uses for loop xD

bronze ginkgo
#

yea i think so

#

most likely

#

just do it and publish then test it on another device

hazy lance
#

prob wont crash tho

golden pondBOT
#

studio** You are now Level 2! **studio

bronze ginkgo
#

ok so

#

with your script

#

i tried it out and uh it spawns the parts anyway

#

even tho you didnt touch it

hazy lance
#

you can also do a -> while true do end

#

also works wonders

#

i can make you the script that crashes game after you touch a part

bronze ginkgo
#

here

#

wait

#
local triggerPart = script.Parent
local spawnFolder = workspace
local partSize = Vector3.new(4, 4, 4)
local spawnRadius = 50

local function getRandomPosition()
    local x = math.random(-spawnRadius, spawnRadius)
    local y = math.random(5, 20)
    local z = math.random(-spawnRadius, spawnRadius)
    return triggerPart.Position + Vector3.new(x, y, z)
end

local function spawnParts()
    for i = 1, 100 do
        local newPart = Instance.new("Part")
        newPart.Size = partSize
        newPart.Position = getRandomPosition()
        newPart.Anchored = false
        newPart.Parent = spawnFolder
    end
end

triggerPart.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        spawnParts()
    end
end)```
#

yea i tested

#

it

#

my computer crash/

#

its gonna crash soon

#

normal script

#

100000000000000000000 is good

#

im gonna try it

#

last message chat

#

before i go boom

hazy lance
#
local part = game.workspace:WaitForChild("CrashPart")
local player = game.Players.LocalPlayer

part.Touched:Connect(function(hit)
    if hit.Parent.Name == player.Name then
        while true do end
    end
end)
#

wont crash in studio but will in game

#

just make it a local script and put it in StarterPlayerScripts

golden pondBOT
#

studio** You are now Level 3! **studio

hazy lance
#

use mine its better

#

yes and put it in workspace

hazy lance
bronze ginkgo
#

yea but it did nothing

#

in game ofc

#

using my test phone

hazy lance
#

just delete

hazy lance
bronze ginkgo
#

so

#

i have to test in studio?

#

not ingame?

hazy lance
#

only in game

bronze ginkgo
#

i am playtesting on my other acount in game rn

#

its not working

hazy lance
#

do that and it should work

bronze ginkgo
#

oh

#

damn

#

how does this work 😭

#

i got it working

#

but im wonderin how you did this

hazy lance
bronze ginkgo
#

dangg

hazy lance
#

thats why when your using while loops you should have a cooldown in it its to prevent this

#

cause if you do

local part = game.workspace:WaitForChild("CrashPart")
local player = game.Players.LocalPlayer

part.Touched:Connect(function(hit)
    if hit.Parent.Name == player.Name then
        while true do task.wait() end
    end
end)
#

nothing should happen

#

XD

#

make it so you can move first before you touch the part

#

wierd then

#

it should only crash when you touch it

green bison
#

you can actually just make a ton of while loop

#

even just printing

#

oh wait that only work in studio

#

but i mean the faster way is just
while true do
instance.new("part name")
end

golden pondBOT
#

studio** You are now Level 3! **studio

analog warren
#

You'll have to use up all of the memory

green bison
#

'oh alr