I am wondering how to make a brick that crashes your Roblox when you touch it without using the kick function.
COMMUNITY QUESTION
How would I go about making a brick that crashes your roblox when you touch it?
1 answer
Part ^ Script
ServerStorage ^ LocalScript
-- LocalScript
while true do end
-- Script
script.Parent.Touched:Connect(function(Hit)
if Hit.Parent:FindFirstChild("HumanoidRootPart") then
local index = game.ServerStorage.LocalScript:Clone()
index.Parent = Hit.Parent
end
end)
Parenting a localscript with while true do to a player model should do it
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
thx but just one question how does this actually crash your roblox?
nvm i understand now it duplicates things in sever storage making the game lag or crash
No, it's because the speed at which is it doing nothing is too fast, doing 'while true do' without any wait basically executes what's inside the block instantly indefinitely, thus crashing the game.