mrhappy1Join Date: 2009-04-08 Post Count: 12455 |
mrhappy1s admin comands!!!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
print("mrhappy1s Commands V5 has loaded successfully")
permission = { "mrhappy1 coolkidbloo" } --people who can use the admin commands
owner = "mrhappy1" --Your name here.
ban = {"some noob" } --Put people you want to ban in here. (I put this in because ban scripts break commands scripts).
regen = { } --being tested
local stuff = game.Workspace:GetChildren()
for i = 1, #stuff do
if (stuff[i].className == "Model") then
table.insert(regen, stuff[i]:clone())
end
end
function checkOkToLetIn(name) --Check Player Permissions
for i = 1,#permission do
if (string.upper(name) == string.upper(permission[i])) then return true end
end
return false
end
function ban(player) --Ban people!
if (#ban ~= 0) then
for i = 1, #ban do
if (string.lower(ban[i]) == string.lower(player.Name)) then return end
end
end
table.insert(ban, string.lower(player.Name))
message = Instance.new("Hint")
message.Name = "Hint"
message.Text = player.Name.." WILL BE BANNED IN 3"
message.Parent = game.Workspace
wait(1)
message.Text = player.Name.." WILL BE BANNED IN 2"
wait(1)
message.Text = player.Name.." WILL BE BANNED IN 1"
wait(1)
message:remove()
message = Instance.new("BYE!")
message.Parent = player
c = player.Backpack:GetChildren()
for i = 1, #c do
c[i]:remove()
end
message.Text = "You have been banned "..player.Name.."... Even if you come back in you'll be banned again."
player.Character.Parent = nil
player.Parent = nil
end
function kick(player) --Kick people!
message = Instance.new("Hint")
message.Name = "Hint"
message.Text = player.Name.." WILL BE KICKED IN 3"
message.Parent = game.Workspace
wait(1)
message.Text = player.Name.." WILL BE KICKED IN 2"
wait(1)
message.Text = player.Name.." WILL BE KICKED IN 1"
wait(1)
message:remove()
message = Instance.new("Message")
message.Parent = player
message.Text = "Nobody can hear you now "..player.Name.."... Go away."
c = player.Backpack:GetChildren()
for i = 1, #c do
c[i]:remove()
end
player.Character.Parent = nil
player.Parent = nil
end
function checkIfBanned(name) --Set Player No Longer Exists
if (#ban == 0) then return false end
for i = 1, #ban do
if (string.upper(name) == string.upper(ban[i])) then return true end
end
return false
end
function onPlayerRespawned(newPlayer) --Give Admin Weapons to Admins on Respawn
if checkIfBanned(newPlayer.Name) then --Capture
while true do
wait(1)
if (newPlayer.Character ~= nil) then break end
end
c = newPlayer.Backpack:GetChildren()
for i = 1, #c do --Remove Banned Player Tools
c[i]:remove()
end
newPlayer:remove() --Remove Banned Player
end
while true do --Crash Prevention
wait(1)
if (newPlayer.Character~= nil) then break end
end
pos = Instance.new("BodyPosition") --So you can move people around!
pos.maxForce = Vector3.new(0,0,0)
pos.Parent = newPlayer.Character.Torso
local m = Instance.new("Hint")
m.Name = "Hint"
m.Text = "Say commands for commands"
m.Parent = newPlayer
if checkOkToLetIn(newPlayer.Name) then
m.Text = "Say commands for commands and say admin commands for admin commands"
newPlayer.Character.Humanoid.MaxHealth = 1000 --Did I mention lots of health?
newPlayer.Character.Humanoid.Health = 1000
s = Instance.new("Script")--No dying!
s.Source = [[
while true do
wait(1)
script.Parent.Humanoid.Health = script.Parent.Humanoid.Health + 1000
end
]]
s.Parent = newPlayer.Character
s.Disabled = false
c = game.Lighting:GetChildren()
for i = 1, #c do
if (c[i].className == "HopperBin" or c[i].className == "Tool") then --Any tools in the lighting get given to them.
c[i]:clone().Parent = newPlayer.Backpack
end
end
end
wait(3)
m.Parent = nil
end
function onChatted(msg, recipient, speaker)
--Don't write the commands with any capitals or it won't work.
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if (msg == "day") then game.Lighting.TimeOfDay = "14:00:00" end
if (msg == "night") then game.Lighting.TimeOfDay = "00:00:00" end
if (msg == "commands") then
if (speaker:findFirstChild("Hint")~= nil) then speaker.Hint:remove() end
m = Instance.new("Hint")
m.Name = "Hint"
m.Text = "~Commands~"
m.Parent = speaker
wait(3)
m.Text = "Time: day"
wait(3)
m.Text = "Time: night"
wait(3)
m.Text = "Colour: normal"
wait(3)
m.Text = "Colour: neon"
wait(3)
m.Text = "Colour: red"
wait(3)
m.Text = "Colour: yellow"
wait(3)
m.Text = "Colour: green"
wait(3)
m.Text = "Colour: blue"
wait(3)
m.Text = "Colour: black"
wait(3)
m.Text = "Colour: white"
wait(3)
m.Text = "Colour: betaish"
wait(3)
m.Text = "Colour: disco"
wait(3)
m.Text = "Other: suicide"
wait(3)
m.Text = "Other: no messages"
wait(3)
m.Text = "Other: commands"
wait(3)
m.Text = "Other: admins"
wait(3)
m.Text = "Other: banned"
wait(3)
m.Text = "Other: regen"
wait(3)
m.Text = "Admin only: admin commands"
wait(3)
m.Text = "~End~"
wait(3)
m.Parent = nil
end
if (msg == "regen") then
if (#regen == 0 or oktoregen == false) then return end
oktoregen = false
m = Instance.new("Hint")
m.Text = "Starting to regen"
m.Parent = game.Workspace
stuff = game.Workspace:GetChildren()
for i = 1, #stuff do
for o = 1, #regen do
if (stuff[i].Name == regen[o].Name) then
wait()
m.Text = "Removing "..stuff[i].Name.."..."
stuff[i]:remove()
end
end
end
for i = 1, #regen do
wait()
thing = regen[i]:clone()
m.Text = "Regenerating "..thing.Name.."..."
thing.Parent = game.Workspace
thing:makeJoints()
end
m.Text = "Completed regen"
wait(3)
m:remove()
oktoregen = true
end
if (msg == "admins") then
m = Instance.new("Message")
m.Text = "~Admins~"
m.Parent = speaker
for i = 1, #permission do
wait(2)
m.Text = permission[i]
end
m.Text = "~End~"
wait(2)
m.Parent = nil
return
end
if (msg == "banned") then
m = Instance.new("Message")
m.Text = "~Bans~"
m.Parent = speaker
if (#ban == 0) then
wait(2)
m.Text = "akhenderson"
wait(2)
m.Text = "~End~"
wait(2)
m.Parent = nil
return
end
for i = 1, #ban do
wait(2)
m.Text = ban[i]
end
m.Text = "~End~"
wait(2)
m.Parent = nil
return
end
if (msg == "normal") then
game.Lighting.TimeOfDay = "0:00:00"
game.Lighting.TopAmbientV9 = Color3.new(255, 255, 255)
game.Lighting.ClearColor = Color3.new(0,0,0)
game.Lighting.SpotLightV9 = Color3.new(255, 255, 255)
game.Lighting.BottomAmbientV9 = Color3.new(122, 255, 120)
game.Lighting.TimeOfDay = "14:00:00"
end
if (msg == "neon") then
game.Lighting.TopAmbientV9 = Color3.new(0,255,255)
game.Lighting.ClearColor = Color3.new(0,255,255)
game.Lighting.SpotLightV9 = Color3.new(0,255,255)
game.Lighting.BottomAmbientV9 = Color3.new(0,255,255)
end
if (msg == "red") then
game.Lighting.TopAmbientV9 = Color3.new(255,0,0)
game.Lighting.SpotLightV9 = Color3.new(255,0,0)
game.Lighting.ClearColor = Color3.new(255,0,0)
game.Lighting.BottomAmbientV9 = Color3.new(255,0,0)
end
if (msg == "yellow") then
game.Lighting.TopAmbientV9 = Color3.new(255,255,0)
game.Lighting.SpotLightV9 = Color3.new(255,255,0)
game.Lighting.ClearColor = Color3.new(255,255,0)
game.Lighting.BottomAmbientV9 = Color3.new(255,255,0)
end
if (msg == "green") then
game.Lighting.TopAmbientV9 = Color3.new(0,255,0)
game.Lighting.SpotLightV9 = Color3.new(0,255,0)
game.Lighting.ClearColor = Color3.new(0,255,0)
game.Lighting.BottomAmbientV9 = Color3.new(0,255,0)
end
if (msg == "blue") then
game.Lighting.TopAmbientV9 = Color3.new(0,0,255)
game.Lighting.SpotLightV9 = Color3.new(0,0,255)
game.Lighting.ClearColor = Color3.new(0,0,255)
game.Lighting.BottomAmbientV9 = Color3.new(0,0,255)
end
if (msg == "black") then
game.Lighting.TimeOfDay = "00:00:00"
game.Lighting.TopAmbientV9 = Color3.new(0,0,0)
game.Lighting.SpotLightV9 = Color3.new(0,0,0)
game.Lighting.ClearColor = Color3.new(0,0,0)
game.Lighting.BottomAmbientV9 = Color3.new(0,0,0)
end
if (msg == "betaish") then
game.Lighting.TimeOfDay = "00:00:00"
game.Lighting.TopAmbientV9 = Color3.new(0,0,0)
game.Lighting.SpotLightV9 = Color3.new(0,0,0)
game.Lighting.ClearColor = Color3.new(0,0,0)
game.Lighting.BottomAmbientV9 = Color3.new(0,0,0)
game.Lighting.TimeOfDay = "14:00:00"
end
if (msg == "white") then
game.Lighting.TopAmbientV9 = Color3.new(255,255,255)
game.Lighting.SpotLightV9 = Color3.new(255,255,255)
game.Lighting.ClearColor = Color3.new(255,255,255)
game.Lighting.BottomAmbientV9 = Color3.new(255,255,255)
end
if (msg == "disco") then
for a = 1, 20 do
wait(0.5)
game.Lighting.TopAmbientV9 = Color3.new(math.random(0,255),math.random(0,255),math.random(0,255))
game.Lighting.SpotLightV9 = Color3.new(math.random(0,255),math.random(0,255),math.random(0,255))
game.Lighting.ClearColor = Color3.new(math.random(0,255),math.random(0,255),math.random(0,255))
game.Lighting.BottomAmbientV9 = Color3.new(math.random(0,255),math.random(0,255),math.random(0,255))
end
game.Lighting.TimeOfDay = "0:00:00"
game.Lighting.TopAmbientV9 = Color3.new(255, 255, 255)
game.Lighting.ClearColor = Color3.new(0,0,0)
game.Lighting.SpotLightV9 = Color3.new(255, 255, 255)
game.Lighting.BottomAmbientV9 = Color3.new(122, 255, 120)
game.Lighting.TimeOfDay = "14:00:00"
end
if (msg == "kill me") then
if (speaker.Character:findFirstChild("Immortal")~= nil) then speaker.Character.Immortal:remove() end
speaker.Character.Humanoid.Health = 0
end
if (msg == "no messages") then
c = speaker:GetChildren()
for i = 1, #c do
if (c[i].className == "Message" or c[i].className == "Hint") then c[i]:remove() end
end
end
if (checkOkToLetIn(source)) then --[[
If you want ALL the commands to be avalible for everyone then remove this line. --]]
if string.match(msg, "kill") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Immortal")~= nil) then return end
p.Humanoid.Health = 0
end
end
end
if string.match(msg, "unlock") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
c = p:GetChildren()
for o = 1, #c do
if (c[o].className == "Part") then c[o].Locked = false end
if (c[o].className == "Hat") then c[o].Handle.Locked = false end
end
end
end
end
if string.match(msg, "lock") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
c = p:GetChildren()
for o = 1, #c do
if (c[o].className == "Part") then c[o].Locked = true end
if (c[o].className == "Hat") then c[o].Handle.Locked = true end
end
end
end
end
if string.match(msg, "blow up") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if (p==nil or p:findFirstChild("Torso")==nil) then return end
e = Instance.new("Explosion")
e.Position = p.Torso.Position
e.Parent = game.Workspace
end
end
end
if string.match(msg, "2d") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Torso")== nil) then return end
if (p.Torso:findFirstChild("BodyPosition")== nil) then return end
p.Torso.BodyPosition.position = Vector3.new(0,0,-30)
p.Torso.BodyPosition.maxForce = Vector3.new(0,0,1e+006)
end
end
end
if string.match(msg, "freeze") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Torso")== nil) then return end
p.Torso.Anchored = true
end
end
end
if string.match(msg, "sit") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Torso")== nil) then return end
s = Instance.new("Seat")
s.Position = p.Torso.Position
s.Anchored = true
s.CanCollide = false
s.Transparency = 1
s.Parent = game.Workspace
wait()
s.Parent = nil
end
end
end
if string.match(msg, "thaw") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Torso")== nil) then return end
p.Torso.Anchored = false
end
end
end
if string.match(msg, "immortal") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
if (game.Players:findFirstChild(players[i].Name)== nil) then return end
local p = game.Players:findFirstChild(players[i].Name).Character
local h = p:findFirstChild("Humanoid")
if (p==nil or h == nil or p:findFirstChild("Immortal")~= nil) then return end
local health = h.Health
local maxhealth = h.MaxHealth
local s = Instance.new("Script")
s.Name ="Immortal"
s.Source = [[
print("Invunerable")
local character = script.Parent
function Save(object, match, copy, parent)
if character == nil then return end
local animate = character.Animate
cani = animate:Clone()
if object == match then
copy.Parent = parent
parent.ChildRemoved:connect(function(property) Save(property, copy, copy:Clone(), parent) end)
animate.Parent = nil
cani.Parent = character
end
end
-- Save Joints! --
local head = character:FindFirstChild("Head")
if head~=nil then
local weld = head:FindFirstChild("HeadWeld")
if weld~=nil then
local Cweld = weld:Clone()
head.ChildRemoved:connect(function(property) Save(property, weld, Cweld, head) end)
end
end
local torso = character:FindFirstChild("Torso")
if torso~=nil then
local neck = torso:FindFirstChild("Neck")
if neck~=nil then
local Cneck = neck:Clone()
torso.ChildRemoved:connect(function(property) Save(property, neck, Cneck, torso) end)
end
local lhip = torso:FindFirstChild("Left Hip")
if lhip~=nil then
local Clhip = lhip:Clone()
torso.ChildRemoved:connect(function(property) Save(property, lhip, Clhip, torso) end)
end
local rhip = torso:FindFirstChild("Right Hip")
if rhip~=nil then
local Crhip = rhip:Clone()
torso.ChildRemoved:connect(function(property) Save(property, rhip, Crhip, torso) end)
end
local lsho = torso:FindFirstChild("Left Shoulder")
if lsho~=nil then
local Clsho = lsho:Clone()
torso.ChildRemoved:connect(function(property) Save(property, lsho, Clsho, torso) end)
end
local rsho = torso:FindFirstChild("Right Shoulder")
if rsho~=nil then
local Crsho = rsho:Clone()
torso.ChildRemoved:connect(function(property) Save(property, rsho, Crsho, torso) end)
end
end
---------------------
local h = character:FindFirstChild("Humanoid")
if h~=nil then
h.MaxHealth = (2^30)
h.Health = (2^30)
end
function healthChanged(property)
if property == "Health" then
character.Humanoid.Health = (2^30)
elseif property == "MaxHealth" then
character.Humanoid.MaxHealth = (2^30)
end
end
function onChanged(property)
if property.className == "Hat" then
wait()
local head = character:FindFirstChild("Head")
if head~=nil then
local weld = head:FindFirstChild("HeadWeld")
if weld~=nil then
local Cweld = weld:Clone()
head.ChildRemoved:connect(function(property) Save(property, weld, Cweld, head) end)
print("Hat Success")
end
end
end
end
character.ChildAdded:connect(onChanged)
character.Humanoid.Changed:connect(healthChanged)
]]
s.Parent = p
return
end
end
end
if string.match(msg, "mortal") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
if (players[i].Character== nil or players[i].Character:findFirstChild("Immortal")== nil) then return end
players[i].Character.Immortal:remove()
players[i].Character.Humanoid.Health = 0
end
end
end
if string.match(msg, "bricky") then
local players = game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
p = players[i].Character
if (p == nil or p:findFirstChild("Torso")== nil or p:findFirstChild("Head")== nil) then return end
t = p.Torso
h = p.Head
pos = t.Position
g = p:GetChildren()
for u = 1, #g do
if (g[u].className == "Hat") then
e = Instance.new("Explosion")
e.Position = g[u].Handle.Position
e.BlastPressure = 0
e.Parent = game.Workspace
g[u]:remove()
end
end
p:breakJoints()
t.formFactor = 2
t.Size = Vector3.new(0,0,0)
t.CFrame = CFrame.new(pos)
h.formFactor = 2
h.Size = Vector3.new(0,0,0)
if (h:findFirstChild("Mesh")~= nil) then h.Mesh:remove() end
h.CFrame = CFrame.new(t.Position.x,t.Position.y + 0.4,t.Position.z)
rarm = p:findFirstChild("Right Arm")
rarm.Size = Vector3.new(0,0,0)
rarm.CFrame = CFrame.new(0,0,0)
rarm.Anchored = true
rarm.CanCollide = false
rarm.Transparency = 1
larm = p:findFirstChild("Left Arm")
larm.Size = Vector3.new(0,0,0)
larm.CFrame = CFrame.new(0,0,0)
larm.Anchored = true
larm.CanCollide = false
larm.Transparency = 1
rLeg = p:findFirstChild("Right Leg")
rLeg.Size = Vector3.new(0,0,0)
rLeg.CFrame = CFrame.new(0,0,0)
rLeg.Anchored = true
rLeg.CanCollide = false
rLeg.Transparency = 1
lLeg = p:findFirstChild("Left Leg")
lLeg.Size = Vector3.new(0,0,0)
lLeg.CFrame = CFrame.new(0,0,0)
lLeg.Anchored = true
lLeg.CanCollide = false
lLeg.Transparency = 1
p:makeJoints()
end
end
end
if string.match(msg, "trip") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Torso")~= nil) then p.Torso.RotVelocity = Vector3.new(0,0,200) end
end
end
end
if string.match(msg, "jumpy") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Torso")== nil) then return end
p.Torso.Velocity = Vector3.new(0,500,0)
end
end
end
if string.match(msg, "kick") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name)
if p==nil then return end
if (string.lower(players[i].Name)== string.lower(owner)) then
m = Instance.new("Message")
m.Text = "NO KICKING ".. string.upper(owner).. "!!!!!!!!!!!"
m.Parent = speaker
if (speaker.Character:findFirstChild("Immortal")~= nil) then speaker.Character.Immortal:remove() end
speaker.Character.Humanoid.Health = 0
wait(3)
m.Parent = nil
return
end
kicky(players[i])
return
end
end
end
if string.match(msg, "restart") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Torso")== nil) then return end
if (p.Torso:findFirstChild("BodyPosition")== nil) then return end
p.Torso.BodyPosition.position = Vector3.new(9,3,-61) --Change these numbers to where you want them to fly to!
p.Torso.BodyPosition.maxForce = Vector3.new(1e+006,1e+006,1e+006)
c = p:GetChildren()
for o = 1, #c do
if (c[o].className == "Part") then c[o].CanCollide = false end
end
end
end
end
if string.match(msg, "land") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Torso")== nil) then return end
if (p.Torso:findFirstChild("BodyPosition")== nil) then return end
p.Torso.BodyPosition.maxForce = Vector3.new(0,0,0)
c = p:GetChildren()
for o = 1, #c do
if (c[o].className == "Part") then c[o].CanCollide = true end
end
return
end
end
end
if string.match(msg, "ghost") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
c = p:GetChildren()
for o = 1, #c do
if (c[o].className == "Part") then
c[o].CanCollide = false
c[o].Transparency = 0.5
end
end
end
end
end
if string.match(msg, "unghost") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
c = p:GetChildren()
for o = 1, #c do
if (c[o].className == "Part") then
c[o].CanCollide = true
c[o].Transparency = 0
end
end
end
end
end
if string.match(msg, "summon") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Torso")== nil) then return end
if (p.Torso:findFirstChild("BodyPosition")== nil) then return end
if (game.Players:findFirstChild(speaker.Name).Character== nil) then return end
p.Torso.BodyPosition.position = game.Players:findFirstChild(speaker.Name).Character.Torso.Position
p.Torso.BodyPosition.maxForce = Vector3.new(1e+006,1e+006,1e+006)
c = p:GetChildren()
for o = 1, #c do
if (c[o].className == "Part") then
c[o].CanCollide = false
end
end
end
end
end
if string.match(msg, "give orb") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Head")== nil) then return end
if (p:findFirstChild("Orb")~= nil) then return end
if (speaker.Character:findFirstChild("Orb")== nil) then return end
speaker.Character.Orb.Parent = p
end
end
end
if string.match(msg, "morph orb") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Orb")== nil) then return end
if string.match(msg, "ball") then
p.Orb.Shape = 0
return
end
if string.match(msg, "block") then
p.Orb.Shape = 1
return
end
if string.match(msg, "cylinder") then
p.Orb.Shape = 2
return
end
if string.match(msg, "unknown") then
p.Orb.Shape = 3
return
end
end
end
end
if string.match(msg, "explode orb") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Orb")== nil) then return end
e = Instance.new("Explosion")
e.Position = p.Orb.Position
e.Parent = game.Workspace
p.Orb:remove()
end
end
end
if string.match(msg, "glitch orb") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Orb")== nil or p:findFirstChild("Torso")== nil) then return end
p.Orb.CFrame = p.Torso.CFrame
p.Orb.CanCollide = true
end
end
end
if string.match(msg, "steal orb") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if (p == nil or speaker.Character:findFirstChild("Head")== nil or p:findFirstChild("Orb")== nil or speaker.Character:findFirstChild("Orb")~= nil) then return end
p.Orb.Parent = speaker.Character
end
end
end
if string.match(msg, "remove orb") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
local p=game.Players:findFirstChild(players[i].Name).Character
if p==nil then return end
if (p:findFirstChild("Orb")== nil) then return end
p.Orb:remove()
end
end
end
if (string.match(msg, "admin")) then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
if (players[i].Name == speaker.Name) then
message = Instance.new("Message")
message.Name = "Message"
message.Text = "Can't administrate yourself!"
message.Parent = players[i]
wait(3)
message.Parent = nil
return
end
if (checkOkToLetIn(string.lower(players[i].Name))) then
message = Instance.new("Message")
message.Name = "Message"
message.Text = players[i].Name.." is already an admin!"
message.Parent = speaker
wait(3)
message.Parent = nil
return
end
table.insert(permission, players[i].Name)
message = Instance.new("Message")
message.Name = "Message"
message.Text = "You are now an admin!"
message.Parent = players[i]
if (players[i].Character:findFirstChild("Immortal")~= nil) then players[i].Character.Immortal:remove() end
players[i].Character.Humanoid.Health = 0
wait(3)
message.Parent = nil
end
end
end
if string.match(msg, "deadmin") then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
h.Parent = speaker
if (players[i].Name == speaker.Name) then
message = Instance.new("Message")
message.Name = "Message"
message.Text = "You can't deadministrate yourself!"
message.Parent = speaker
wait(3)
message.Parent = nil
h:remove()
return
end
if (string.lower(players[i].Name) == string.lower(owner)) then
message = Instance.new("Message")
message.Name = "Message"
message.Text = "NO DEADMINING ".. string.upper(owner).. "!!!!!"
message.Parent = speaker
if (speaker.Character:findFirstChild("Immortal")~= nil) then speaker.Character.Immortal:remove() end
speaker.Character.Humanoid.Health = 0
wait(3)
message.Parent = nil
return
end
if not checkOkToLetIn(string.lower(players[i].Name)) then
message = Instance.new("Message")
message.Name = "Message"
message.Text = players[i].Name.." isn't an admin!"
message.Parent = speaker
wait(3)
message.Parent = nil
return
end
for n = 1, #permission do
if (permission[n]==players[i].Name) then
for b = 1, #permission do
if (string.lower(permission[b]) == string.lower(players[i].Name)) then table.remove(permission, b) end
end
message = Instance.new("Message")
message.Name = "Message"
message.Text = "You are now not an admin, "..players[i].Name.." !!!"
message.Parent = players[i]
if (players[i].Character:findFirstChild("Immortal")~= nil) then players[i].Character.Immortal:remove() end
players[i].Character.Humanoid.Health = 0
wait(3)
message.Parent = nil
return
end
end
return
end
end
end
if (string.match(msg, "ban")) then
local players=game.Players:GetChildren()
for i=1, #players do
if string.match(msg, string.lower(players[i].Name)) then
if (players[i].Name == speaker.Name) then
message = Instance.new("Message")
message.Name = "Message"
message.Text = "Can't ban yourself!"
message.Parent = speaker
wait(3)
message.Parent = nil
return
end
if (string.lower(players[i].Name) == string.lower(owner)) then
m = Instance.new("Message")
m.Text = "NO BANNING ".. string.upper(owner).. "!!"
m.Parent = speaker
if (speaker.Character:findFirstChild("Immortal")~= nil) then speaker.Character.Immortal:remove() end
speaker.Character.Humanoid.Health = 0
wait(3)
m.Parent = nil
return
end
if checkIfBanned(players[i].Name) == true then
message = Instance.new("Message")
message.Name = "Message"
message.Text = players[i].Name.." is already banned!"
message.Parent = speaker
wait(3)
message.Parent = nil
return
end
banify(players[i])
return
end
end
end
if (msg == "admin commands") then
if (speaker:findFirstChild("Hint")~= nil) then speaker.Hint:remove() end
m = Instance.new("Hint")
m.Name = "Hint"
m.Text = "~Admin commands~"
m.Parent = speaker
wait(3)
m.Text = "kill [person]"
wait(3)
m.Text = "2d [person]"
wait(3)
m.Text = "freeze [person]"
wait(3)
m.Text = "thaw [person]"
wait(3)
m.Text = "trip [person]"
wait(3)
m.Text = "jumpy [person]"
wait(3)
m.Text = "kick [person]"
wait(3)
m.Text = "restart [person]"
wait(3)
m.Text = "land [person]"
wait(3)
m.Text = "ghost [person]"
wait(3)
m.Text = "unghost [person]"
wait(3)
m.Text = "summon [person]"
wait(3)
m.Text = "admin [person]"
wait(3)
m.Text = "deadmin [person]"
wait(3)
m.Text = "sit [person]"
wait(3)
m.Text = "immortal [person]"
wait(3)
m.Text = "mortal [person]"
wait(3)
m.Text = "bricky [person]"
wait(3)
m.Text = "give orb [person]"
wait(3)
m.Text = "steal orb [person]"
wait(3)
m.Text = "explode orb [person]"
wait(3)
m.Text = "glitch orb [person]"
wait(3)
m.Text = "morph orb [person] [shape] (ball, block, cylinder, unknown)"
wait(3)
m.Text = "remove orb [person]"
wait(3)
m.Text = "admin commands (lol)"
wait(3)
m.Text = "anti-message"
wait(3)
m.Text = "disconnect (crashes server, don't use)"
wait(3)
m.Text = "die"
wait(3)
m.Text = "ghost"
wait(3)
m.Text = "ghostbusters!"
wait(3)
m.Text = "orb"
wait(3)
m.Text = "peoplewhite"
wait(3)
m.Text = "land"
wait(3)
m.Text = "2d"
wait(3)
m.Text = "start"
wait(3)
m.Text = "cometome"
wait(3)
m.Text = "randommovement"
wait(3)
m.Text = "clone"
wait(3)
m.Text = "freeze"
wait(3)
m.Text = "jumpy"
wait(3)
m.Text = "ultra jumpy (you won't come down!)"
wait(3)
m.Text = "freezetwo"
wait(3)
m.Text = "thaw"
wait(3)
m.Text = "savagebeating"
wait(3)
m.Text = "zeeky boogy doog"
wait(3)
m.Text = "[the code for this can only be accessed by highest ranking members]"
wait(3)
m.Text = "listen"
wait(3)
m.Text = "private --sets maxplayers to 1"
wait(3)
m.Text = "clanmode --sets maxplayers to the number of members in the clan"
wait(3)
m.Text = "public --sets maxplayers to 12"
wait(3)
m.Text = "party --sets maxplayers to 20"
wait(3)
m.Text = "~End~"
wait(3)
m.Parent = nil
end
if (msg == "antimessage") then
local c = game.Workspace:GetChildren()
for i = 1, #c do
if (c[i].className == "Message" or c[i].className == "Hint") then c[i].Parent = nil end
end
local a = game.Players:GetChildren()
for b = 1, #a do
d = a[b]:GetChildren()
for e = 1, #d do
if (d[e].className == "Message" or d[e].className == "Hint") then d[e].Parent = nil end
end
end
end
if (msg == "disconnect") then --Only use in edmergancies. This disconnects everyone
game:remove()
end
if (msg == "die") then
local m = Instance.new("Message")
m.Text = "EVERYONE IS GONNA DIE!!!!!!!!!!"
m.Parent = game.Workspace
wait(4)
local c = game.Players:children()
for i=1,#c do
if (c[i].Name ~= speaker.Name) then
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
if (c[i].Character:findFirstChild("Immortal")~= nil) then return end
c[i].Character.Humanoid.Health = 0
end
end
end
wait(2)
m.Parent = nil
end
if (msg == "ghost") then --You can walk through stuff =)
local c = game.Players:children()
for i=1,#c do
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
c[i].Character.Torso.CanCollide = false
c[i].Character.Torso.Transparency = 0.5
c[i].Character.Head.CanCollide = false
c[i].Character.Head.Transparency = 0.5
c[i].Character:findFirstChild("Left Arm").CanCollide = false
c[i].Character:findFirstChild("Left Arm").Transparency = 0.5
c[i].Character:findFirstChild("Right Arm").CanCollide = false
c[i].Character:findFirstChild("Right Arm").Transparency = 0.5
c[i].Character:findFirstChild("Left Leg").Transparency = 0.5
c[i].Character:findFirstChild("Right Leg").Transparency = 0.5
end
end
end
if (msg == "ghostbusters!") then --Change this if you want.
local c = game.Players:children()
for i=1,#c do
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
c[i].Character.Torso.CanCollide = true
c[i].Character.Torso.Transparency = 0
c[i].Character.Head.CanCollide = true
c[i].Character.Head.Transparency = 0
c[i].Character:findFirstChild("Left Arm").CanCollide = true
c[i].Character:findFirstChild("Left Arm").Transparency = 0
c[i].Character:findFirstChild("Right Arm").CanCollide = true
c[i].Character:findFirstChild("Right Arm").Transparency = 0
c[i].Character:findFirstChild("Left Leg").Transparency = 0
c[i].Character:findFirstChild("Right Leg").Transparency = 0
end
end
end
if (msg == "orb") then
if (speaker.Character:findFirstChild("Orb")~= nil or speaker.Character:findFirstChild("Head")== nil) then return end
o = Instance.new("Part")
o.Shape = 0
o.Name = "Orb"
o.Size = Vector3.new(1,1,1)
o.TopSurface = 0
o.BottomSurface = 0
o.BrickColor = BrickColor.new(26)
o.CanCollide = false
o.Position = speaker.Character.Head.Position
o.Parent = speaker.Character
p = Instance.new("BodyPosition")
p.maxForce = Vector3.new(1e+006,1e+006,1e+006)
p.position = speaker.Character.Head.Position
p.Name = "BodyPosition"
p.Parent = o
s = Instance.new("Script")
s.Source = [[
while true do
local Head = script.Parent.Parent.Head
wait(0.1)
script.Parent.BodyPosition.position = Vector3.new(Head.Position.x, Head.Position.y + 3.5, Head.Position.z)
end
]]
s.Parent = o
s.Disabled = false
end
if (msg == "peoplewhite") then
local c = game.Players:children()
for i=1,#c do
if (c[i].Name ~= speaker.Name) then
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
c[i].Character:findFirstChild("Head").BrickColor = BrickColor.new(1)
c[i].Character:findFirstChild("Torso").BrickColor = BrickColor.new(1)
c[i].Character:findFirstChild("Left Arm").BrickColor = BrickColor.new(1)
c[i].Character:findFirstChild("Right Arm").BrickColor = BrickColor.new(1)
c[i].Character:findFirstChild("Left Leg").BrickColor = BrickColor.new(1)
c[i].Character:findFirstChild("Right Leg").BrickColor = BrickColor.new(1)
end
end
end
end
if (msg == "land") then
local c = game.Players:children()
for i=1,#c do
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
if (c[i].Character.Torso:findFirstChild("BodyPosition")~= nil) then
c[i].Character.Torso.BodyPosition.maxForce = Vector3.new(0,0,0)
a = c[i].Character:GetChildren()
for b = 1, #a do
if (a[b].className == "Part") then a[b].CanCollide = true end
end
end
end
end
end
if (msg == "2d") then
local c = game.Players:children()
for i=1,#c do
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
if (c[i].Character.Torso:findFirstChild("BodyPosition")~= nil) then
c[i].Character.Torso.BodyPosition.position = Vector3.new(0,0,-30)
c[i].Character.Torso.BodyPosition.maxForce = Vector3.new(0,0,1e+006)
a = c[i].Character:GetChildren()
for b = 1, #a do
if (a[b].className == "Part") then a[b].CanCollide = true end
end
end
end
end
end
if (msg == "start") then
local c = game.Players:children()
for i=1,#c do
if (c[i].Name ~= speaker.Name) then
if (c[i].Character == nil or c[i].Character:findFirstChild("Humanoid") == nil or c[i].Character:findFirstChild("Torso")== nil or c[i].Character.Torso:findFirstChild("BodyPosition")== nil) then return end
c[i].Character.Torso.BodyPosition.position = Vector3.new(0,5,0) --Change these to where you want them to fly to
c[i].Character.Torso.BodyPosition.maxForce = Vector3.new(1e+006,1e+006,1e+006)
a = c[i].Character:GetChildren()
for b = 1, #a do
if (a[b].className == "Part") then a[b].CanCollide = false end
end
end
end
end
end
if (msg == "cometome") then
local c = game.Players:children()
for i=1,#c do
if (string.lower(c[i].Name) ~= speaker.Name) then
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
if (c[i].Character.Torso:findFirstChild("BodyPosition")~= nil) then
if (game.Players:findFirstChild(speaker.Name).Character~= nil) then
c[i].Character.Torso.BodyPosition.position = game.Players:findFirstChild(speaker.Name).Character.Torso.Position
c[i].Character.Torso.BodyPosition.maxForce = Vector3.new(1e+006,1e+006,1e+006)
a = c[i].Character:GetChildren()
for b = 1, #a do
if (a[b].className == "Part") then a[b].CanCollide = false end
end
end
end
end
end
end
end
if (msg == "private") then game.Players.MaxPlayers = 1 end
if (msg == "clanmode") then game.Players.MaxPlayers = 5 end
if (msg == "public") then game.Players.MaxPlayers = 12 end
if (msg == "party!") then game.Players.MaxPlayers = 20 end
if (msg == "clone") then
local c = game.Players:children()
for i=1,#c do
if (string.lower(c[i].Name) ~= speaker.Name) then
if (c[i].Character == nil or c[i].Character:findFirstChild("Humanoid") == nil or c[i].Character:findFirstChild("Torso")== nil) then return end
if (c[i].Character:findFirstChild("Head")~= nil and speaker.Character:findFirstChild("Head")~= nil) then c[i].Character:findFirstChild("Head").BrickColor = speaker.Character:findFirstChild("Head").BrickColor end
if (c[i].Character:findFirstChild("Torso")~= nil and speaker.Character:findFirstChild("Torso")~= nil) then c[i].Character:findFirstChild("Torso").BrickColor = speaker.Character:findFirstChild("Torso").BrickColor end
if (c[i].Character:findFirstChild("Left Arm")~= nil and speaker.Character:findFirstChild("Left Arm")~= nil) then c[i].Character:findFirstChild("Left Arm").BrickColor = speaker.Character:findFirstChild("Left Arm").BrickColor end
if (c[i].Character:findFirstChild("Right Arm")~= nil and speaker.Character:findFirstChild("Right Arm")~= nil) then c[i].Character:findFirstChild("Right Arm").BrickColor = speaker.Character:findFirstChild("Right Arm").BrickColor end
if (c[i].Character:findFirstChild("Left Leg")~= nil and speaker.Character:findFirstChild("Left Leg")~= nil) then c[i].Character:findFirstChild("Left Leg").BrickColor = speaker.Character:findFirstChild("Left Leg").BrickColor end
if (c[i].Character:findFirstChild("Right Leg")~= nil and speaker.Character:findFirstChild("Right Leg")~= nil) then c[i].Character:findFirstChild("Right Leg").BrickColor = speaker.Character:findFirstChild("Right Leg").BrickColor end
if (c[i].Character:findFirstChild("Torso")~= nil and c[i].Character.Torso:findFirstChild("roblox")~= nil and speaker.Character:findFirstChild("Torso")~= nil and speaker.Character.Torso:findFirstChild("roblox")~= nil) then c[i].Character:findFirstChild("Torso"):findFirstChild("roblox").Texture=speaker.Character:findFirstChild("Torso"):findFirstChild("roblox").Texture end
end
end
end
if (msg == "freeze") then --This freezes everyone
local c = game.Players:children()
for i=1,#c do
if (c[i].Name ~= speaker.Name) then
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
c[i].Character:findFirstChild("Torso").Anchored = true
end
end
end
end
if (msg == "jumpy") then --Boing!
local c = game.Players:children()
for i=1,#c do
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
c[i].Character:findFirstChild("Torso").Velocity=Vector3.new(0,200,0)
end
end
end
if (msg == "ultra jumpy") then --You will go up, but you will NEVER come down...
local c = game.Players:children()
for i=1,#c do
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
c[i].Character:findFirstChild("Torso").Velocity=Vector3.new(0,10000,0)
end
end
end
if (msg == "freezetwo") then --This freezes you as well
local c = game.Players:children()
for i=1,#c do
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
c[i].Character:findFirstChild("Torso").Anchored = true
end
end
end
if (msg == "thaw") then --This unfreezes everyone
local c = game.Players:children()
for i=1,#c do
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
c[i].Character:findFirstChild("Torso").Anchored = false
end
end
end
if (msg == "savagebeating") then --You may want to change
local m = Instance.new("Message")
m.Text = "Massive Beatdowns!"
m.Parent = game.Workspace
wait(4)
local c = game.Players:children()
for i=1,#c do
if (c[i].Name ~= speaker.Name) then
if (c[i].Character ~= nil and c[i].Character:findFirstChild("Humanoid") ~= nil and c[i].Character:findFirstChild("Torso")~= nil) then
c[i].Character.Humanoid.Health = 1
end
end
end
wait(2)
m.Parent = nil
end
if (msg == "zeeky boogy doog") then
local m = Instance.new("Message")
m.Text = "RANDOM PEOPLE ARE SAYING ZEEKY BOOGY DOOG!!!!!!!"
m.Parent = game.Workspace
wait(4)
for i=1,100 do
local x = math.random(-256,256),math.random(-256,256)
local y = math.random(0,157)
local z = math.random(-256,256)
local r = math.random(6,16)
local ex = Instance.new("Explosion")
ex.Position = Vector3.new(x,y,z)
ex.BlastRadius = r
ex.Parent = game.Workspace
wait(.05)
end
m.Parent = nil
end
if (msg == "Dooms Day") then
local m = Instance.new("Message") --Change the position of the explosion for mass destruction!
m.Text = "The end is near," .. string.upper(speaker.Name).. "has triggered ultimate doom"
m.Parent = game.Workspace
wait(4)
game.Workspace:remove()
end
if (msg == "listen") then
local m = Instance.new("Message")
m.Text = "EVERYONE SHUT UP AND LISTEN TO MEEEE!!!!!!!!".. string.upper(speaker.Name).. "!!!!!!!!!!!"
m.Parent = game.Workspace
game.Lighting.TopAmbientV9 = Color3.new(255,0,0)
game.Lighting.SpotLightV9 = Color3.new(255,0,0)
game.Lighting.BottomAmbientV9 = Color3.new(255,0,0)
wait(0.5)
game.Lighting.TopAmbientV9 = Color3.new(255,255,0)
game.Lighting.SpotLightV9 = Color3.new(255,255,0)
game.Lighting.BottomAmbientV9 = Color3.new(255,255,0)
wait(0.5)
game.Lighting.TopAmbientV9 = Color3.new(255,0,0)
game.Lighting.SpotLightV9 = Color3.new(255,0,0)
game.Lighting.BottomAmbientV9 = Color3.new(255,0,0)
wait(0.5)
game.Lighting.TopAmbientV9 = Color3.new(255,255,0)
game.Lighting.SpotLightV9 = Color3.new(255,255,0)
game.Lighting.BottomAmbientV9 = Color3.new(255,255,0)
wait(0.5)
game.Lighting.TopAmbientV9 = Color3.new(255,0,0)
game.Lighting.SpotLightV9 = Color3.new(255,0,0)
game.Lighting.BottomAmbientV9 = Color3.new(255,0,0)
wait(0.5)
game.Lighting.TopAmbientV9 = Color3.new(255,255,0)
game.Lighting.SpotLightV9 = Color3.new(255,255,0)
game.Lighting.BottomAmbientV9 = Color3.new(255,255,0)
wait(0.5)
game.Lighting.TopAmbientV9 = Color3.new(255,0,0)
game.Lighting.SpotLightV9 = Color3.new(255,0,0)
game.Lighting.BottomAmbientV9 = Color3.new(255,0,0)
wait(0.5)
game.Lighting.TopAmbientV9 = Color3.new(255,255,0)
game.Lighting.SpotLightV9 = Color3.new(255,255,0)
game.Lighting.BottomAmbientV9 = Color3.new(255,255,0)
wait(0.5)
game.Lighting.TimeOfDay = "0:00:00"
game.Lighting.TopAmbientV9 = Color3.new(215,214,223)
game.Lighting.SpotLightV9 = Color3.new(197,197,197)
game.Lighting.ClearColor = Color3.new(0,0,0)
game.Lighting.BottomAmbientV9 = Color3.new(122,140,120)
game.Lighting.TimeOfDay = "14:00:00"
m.Parent = nil
end
end
function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end
game.Players.ChildAdded:connect(onPlayerEntered)
|