juriaan
|
  |
| Joined: 25 Nov 2008 |
| Total Posts: 939 |
|
|
| 28 Aug 2011 07:18 AM |
Alright this is mine Admin Script It works fine without the the things with the Mark for it. Please check it and give me the Error. Becuase Output wont Thanks, Juriaan
local name = "juriaan" local players = game:GetService("Players") -- Dont Include at the First Script that Works Game.Players.ChildAdded:connect(function(p) -- End of Part that is new in version 2.0 local player = players:FindFirstChild(name) -- new Part if player =~ nil then -- End new Part player.Chatted:connect(function(msg) end -- Wasnt Include in the First Version
if msg == nil then return end
if string.sub(msg,1,5) == "kill:" then -- searching characters 1 to 5
for i,v in pairs(players:GetChildren()) do
if v ~= nil then
if string.match(string.lower(v.Name),string.lower(string.sub(msg,6))) then
v.Character:BreakJoints()
end
end
end
end
if string.sub(msg,1,5) == "kick:" then
for i,v in pairs(players:GetChildren()) do
if v ~= nil then
if string.match(string.lower(v.Name),string.lower(string.sub(msg,6))) then
v:remove()
end
end
end
end
if string.sub(msg,1,8) == "respawn:" then
for i,v in pairs(players:GetChildren()) do
if v ~= nil then
if string.match(string.lower(v.Name),string.lower(string.sub(msg,9))) then
v.Character.Parent = game.Lighting
wait(5)
v.Character.Parent = game.Workspace
v.Character.Head:remove()
end
end
end
end
if string.sub(msg,1,9) == "telehere:" then
for i,v in pairs(players:GetChildren()) do
if v ~= nil then
if string.match(string.lower(v.Name),string.lower(string.sub(msg,10))) then
v.Character.Torso.CFrame = player.Character.Torso.CFrame
end
end
end
end
if string.sub(msg,1,7) == "teleto:" then
for i,v in pairs(players:GetChildren()) do
if v ~= nil then
if string.match(string.lower(v.Name),string.lower(string.sub(msg,8))) then
player.Character.Torso.CFrame = v.Character.Torso.CFrame
end
end
end
end
if string.sub(msg,1,8) == "explode:" then
for i,v in pairs(players:GetChildren()) do
if v ~= nil then
if string.match(string.lower(v.Name),string.lower(string.sub(msg,9))) then
Instance.new("Explosion" , Game.Workspace).Position = v.Character.Torso.Position
end
end
end
end
end)-- Wasnt Include in the First part end)-- Wasnt include in the first part |
|
|
| Report Abuse |
|
|
| 28 Aug 2011 07:21 AM |
"player.Chatted:connect(function(msg) end"
that
.:Like a boss:. |
|
|
| Report Abuse |
|
xvgigakid
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 4407 |
|
|
| 28 Aug 2011 07:22 AM |
| We cant help you without the output bro, but tell us how you know its broken. Do you have some kind of message that says Your An Admin when you enter the game? Or tell us wich commands work and wich dont? |
|
|
| Report Abuse |
|
xvgigakid
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 4407 |
|
|
| 28 Aug 2011 07:25 AM |
@Crazy
Why didn't I see that :O
Mistake1: player.Chatted:connect(function(msg) end) --Closing it so soon?
player.Chatted:connect(function(msg) end
Game.Players.ChildAdded:connect(function(p) --game not Game. And 'p' should be player.
~Please refrain from free models.
|
|
|
| Report Abuse |
|
juriaan
|
  |
| Joined: 25 Nov 2008 |
| Total Posts: 939 |
|
|
| 28 Aug 2011 09:02 AM |
@xvg. Please dont try to help if you dont know anything about it Game and game are just fire. Doesnt matter And you can call it p or Player still doesnt matter
@Crazy I use a Connect Function that needs to be closed with end) instead of end
But I will try
Juriaan
|
|
|
| Report Abuse |
|