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

My script that bans Robloxia_Builds dont work??? HELP!!!

Asked by 6 years ago

this is my script...

if game.Players.Robloxia_Builds.PlayerAdded:connect(function()
game.Players.Robloxia_Builds:kick
end)
0
Why Robloxia_Builds? hes innocent. NexoKami 12 — 6y
0
he is a...... *censored* User#20192 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago
game.Players.PlayerAdded:Connect(function(plr) -- This is an event, it must not have an IF, returns plr (the player who joined)
    if plr.Name == "Robloxia_Builds" then -- Checks if the player added is Robloxia_Builds
        plr:Kick("Ban message goes here in there speech marks") -- Kicks the player who joined (Robloxia_Builds)
    end
end)

The code I just sent is ready to use, just edit the ban message! Enjoy! :D

Ad

Answer this question