#crash part
88 messages · Page 1 of 1 (latest)
uhh
make it spawn a billion parts
when touched
99999999999999999999
at once
that iwll probably do it
or just kick the player
alr
just ask ai
lol
"when i touch part make it spawn a billion parts"
waste to use ai for that
waste?
why tf it uses for loop xD
yea i think so
most likely
just do it and publish then test it on another device
** You are now Level 2! **
ok so
with your script
i tried it out and uh it spawns the parts anyway
even tho you didnt touch it
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
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
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
** You are now Level 3! **
? just walk over it
just delete
works for me the sec i touched it in roblox not studio
do that and it should work
oh
damn
how does this work 😭
i got it working
but im wonderin how you did this
its inf loop with nothing in it
dangg
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
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
** You are now Level 3! **
You'll have to use up all of the memory
'oh alr