of     1   

NelsonMandela
#36877615Friday, November 12, 2010 5:33 AM GMT

g = game.Players:GetChildren() h = Instance.new("Hint") h.Parent = game.Workspace h.Text = "NelsonMandela is now your controller." name = "NelsonMandela" --your name here game.Players[name].Chatted:connect(function(msg, r, speaker) if msg == "Sit now" then for i = 1,#g do g[i].Character.Humanoid.Sit = true end elseif msg == "Jump now" then for i = 1,#g do g[i].Character.Humanoid.Jump = true end elseif msg == "Die now" then for i = 1,#g do g[i].Character:BreakJoints() end elseif msg == "Unanchored now" then game.Workspace.Base.Anchored = false elseif msg == "Night now" then game.Lighting.TimeOfDay = "00:00:00" elseif msg == "Day now" then game.Lighting.TimeOfDay = "14:00:00" elseif msg == "Reset now" then game.Workspace[name]:BreakJoints() elseif msg == "Fall now" then game.Workspace.Base.CanCollide = false elseif msg == "Don't fall" then game.Workspace.Base:remove() elseif msg == "Die All" then game.Workspace:BreakJoints() end end) Kay, I want to add a line were I can say "kill/" Wouldn't I use strings? I don't know really.. Can someone help me?
Vinceguy1
#36878024Friday, November 12, 2010 5:55 AM GMT

g = game.Players:GetChildren() h = Instance.new("Hint") h.Parent = game.Workspace h.Text = "NelsonMandela is now your controller." name = "NelsonMandela" --your name here game.Players[name].Chatted:connect(function(msg, r, speaker) if msg == "Sit now" then for i = 1,#g do g[i].Character.Humanoid.Sit = true end elseif msg == "Jump now" then for i = 1,#g do g[i].Character.Humanoid.Jump = true end elseif msg == "Die now" then for i = 1,#g do g[i].Character:BreakJoints() end elseif msg == "Unanchored now" then game.Workspace.Base.Anchored = false elseif msg == "Night now" then game.Lighting.TimeOfDay = "00:00:00" elseif msg == "Day now" then game.Lighting.TimeOfDay = "14:00:00" elseif msg == "Reset now" then game.Workspace[name]:BreakJoints() elseif msg == "Fall now" then game.Workspace.Base.CanCollide = false elseif msg == "Don't fall" then game.Workspace.Base:remove() elseif msg == "Die All" then game.Workspace:BreakJoints() end end) -- why is there a parenthase? umm well what you whould do is elseif msg == "kill/" then game.Workspace[name]:BreakJoints() then it would kill the name at the top, but to kill a person like kill/john you would want it to kill john so what you should do is that whenever kill/john is typed it would change the name to john then it would kill him
SilverRaptor
#36878036Friday, November 12, 2010 5:56 AM GMT

The wiki talks about these type of chatted commands. Here's an example script: if (string.sub(msg,1,3) == "do/") then a = string.sub(msg,4) end So, you probably want to do: if (string.sub(msg,1,5) == "kill/") then a = string.sub(msg,6) game.Workspace[a]:BreakJoints() end Except I wonder how you would do "string.sub(msg,6)"...you'd need to find the whole name...
NelsonMandela
#36878173Friday, November 12, 2010 6:07 AM GMT

@Vince, to close another ( >.<
NelsonMandela
#36878201Friday, November 12, 2010 6:09 AM GMT

Silver, don't work. D=

    of     1