why will the player:kick work here?
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if(msg == "I dont feel so good") then player:kick ("Thanos Snapped") end end) end)
and not here
function clicked() player:kick ("oof") end script.Parent.MouseButton1Click:Connect(clicked)
pls help
"player" is not defined. Put this in a localscript:
local player = game.Players.LocalPlayer function clicked() player:kick ("oof") end script.Parent.MouseButton1Click:Connect(clicked)