Jul 19th, 2019
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- ---To use: Say 'kick/playername'
- function KickPlayer(name, source)
- p = game.Workspace:findFirstChild(name) --find the person who you said to kick
- if p nil then return end --If the player is not there, then don't do anything
- if name source then return end --sorry, you can't kick yourself. (too bad!)
- local KickedPlayer = game.Players:findFirstChild(name) --finds the player to kick
- m.Parent = KickedPlayer
- m.Text = 'You have been kicked' --gives a message saying you were kicked
- m.Parent = nil --removes the message
- p.Parent = nil --huh?
- function onChatted(msg, recipient, speaker)
- --convert to all lowercase (you don't need any capitals)
- local source = string.lower(speaker.Name)
- if string.match(msg, 'kick/') then --someone has said 'kick/playername'
- for i=1, #playerz do
- if string.match(msg, string.lower(playerz[i].Name)) then
- end
- end
- newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
Free Open Roblox Groups
Roblox is ushering in the next generation of entertainment. Imagine, create, and play together with millions of players across an infinite variety of immersive, user-generated 3D worlds. Roblox is a global platform that brings people together through play.
RAW Paste Data