Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players") -- Use lowercase 'local' and 'game'
- local function kick(playerName, reason)
- local player = Players:FindFirstChild(playerName) -- Use a colon for methods like `FindFirstChild`
- if player then
- player:Kick(reason or "Your message MUST BE CHANGED") -- Proper capitalization and use of `:Kick`
- warn("You can get banned as this is FE")
- print(playerName .. " has been kicked") -- Use `..` for string concatenation
- else
- print("Player not found. Do not enter false names.") -- No need for `LocalPlayer` here
- end
- end
- -- Change important
- kick("wutdahell510", "Stupid")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement