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
|