generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Admin Problems

Previous Thread :: Next Thread 
juriaan is not online. 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
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
28 Aug 2011 07:21 AM
"player.Chatted:connect(function(msg)
end"

that

.:Like a boss:.
Report Abuse
xvgigakid is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image