How do i kick players like if they step on a brick lets say they step on a brick is there a way to get the players without writing it down?
Game.Players.(PlayerName):Kick("Sorry You've Been Kicked")
For first, the Game
is deprecated use game
You need to get all players with for
You can see here: Roblox Wiki - for
Example:
local table = {"Apple","Orange"} for i,v in pairs(table) do print(v) end
You can simple use:
for i,v in pairs(game.Players:GetPlayers()) do v:Kick("Sorry You've Been Kicked!") end
Hope it helped!