|
| 06 Jul 2012 01:01 PM |
local admins = {"FreezingIceDragon"}
function OnPlayerChatted(speaker, msg) end msg = string.lower(msg) for i = 1,#admins do if speaker.Name == admins[i] then if msg == "tele/all/gunfight1" then p = game.Players:GetChildren() for i = 1,#p do p[i].Character.Torso.Position = Vector3.new(236, 18, 196) end end end end
function onPlayerEntered(newPlayer) newPlayer.Chatted:connect(function(msg) OnPlayerChatted(newPlayer, msg) end) end
game.Players.PlayerAdded:connect(onPlayerEntered)
What's wrong with it? |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
|
| 06 Jul 2012 01:09 PM |
permission = {"FreezingIceDragon"}
function checkOkToLetIn(name) for i = 1,#permission do -- convert strings to all upper case, otherwise we will let in -- "Username" but not "username" or "uSERNAME" if (string.upper(name) == string.upper(permission[i])) then return true end end return false end
function OnPlayerChatted(speaker, msg) msg = string.lower(msg) if checkOkToLetIn(speaker.Name) then if msg == "tele/all/gunfight1" then p = game.Players:GetChildren() for i = 1,#p do p[i].Character.Torso.Position = Vector3.new(236, 18, 196) end end end end
function onPlayerEntered(newPlayer) newPlayer.Chatted:connect(function(msg) OnPlayerChatted(newPlayer, msg) end) end game.Players.PlayerAdded:connect(onPlayerEntered)
- Striked |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2012 01:15 PM |
| How do I bring my whole body there WITHOUT killing me... |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2012 01:19 PM |
p[i].Character:MoveTo(Vector3.new(236, 18, 196))
- Striked |
|
|
| Report Abuse |
|
|
| |
|