Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I get this script to work in Studio without it kicking me?

Asked by 10 years ago

Everytime I press play and click on an object in Explorer, it kicks me from Studio. How do I get it not to kick me when i'm editing things in Studio.

wait(2)

game:GetService("Selection").SelectionChanged:connect(function() local name = game.Players.LocalPlayer.Name local m = Instance.new("Message", workspace) m.Text = name .. " was exploiting, and has been kicked." wait(5) m:destroy() while true do end end)

Answer this question