pointszJoin Date: 2013-02-09 Post Count: 1471 |
plr = game.Players.LocalPlayer
object = script.Parent
if plr.Name == "OurHonestFather" or plr.Name == "devSurface" or plr.Name == "PresidentGiorgi" then
script.Parent.Visible = true
end
script.Parent.MouseButton1Down:connect(function()
plr.Teamcolor = BrickColor.new("Hot Pink")
end)
why no work |
|
|
Teamcolor
Yeah, output will say that this does not exist because case sensitive.
TeamColor |
|
badfitz99Join Date: 2010-05-01 Post Count: 5854 |
plr = game.Players.LocalPlayer
object = script.Parent
admins = {"devSurface", "", ""}
for _, v in pairs(admins) do
game.Players.PlayerAdded:connect(function(new)
if new.Name == v then
script.Parent.Visible = true
else
script.Parent.Visible = false
end)
end
script.Parent.MouseButton1Down:connect(function()
plr.Teamcolor = BrickColor.new("Hot Pink")
end)
try this. (put in local script) |
|
pointszJoin Date: 2013-02-09 Post Count: 1471 |
god no playeraddded dude
its not only for playeradded when he got added..
e.e |
|
pointszJoin Date: 2013-02-09 Post Count: 1471 |
badfitz, i fixed error, it needed another end but still no work |
|
badfitz99Join Date: 2010-05-01 Post Count: 5854 |
plr = game.Players.LocalPlayer
object = script.Parent
admins = {"devSurface", "", ""}
for _, v in pairs(admins) do
game.Players.PlayerAdded:connect(function(new)
if new.Name == v then
script.Parent.Visible = true
else
script.Parent.Visible = false
end
end)
end
script.Parent.MouseButton1Down:connect(function()
plr.TeamColor = BrickColor.new("Hot Pink")
end)
|
|
pointszJoin Date: 2013-02-09 Post Count: 1471 |
k ima test later, gotta sleep |
|
pointszJoin Date: 2013-02-09 Post Count: 1471 |
plr = game.Players.LocalPlayer
object = script.Parent
admins = {"devSurface", "", ""}
for _, v in pairs(admins) do
game.Players.PlayerAdded:connect(function(new)
if new.Name == v then
script.Parent.Visible = true
else
script.Parent.Visible = false
end
end)
end
script.Parent.MouseButton1Down:connect(function()
plr.TeamColor = BrickColor.new("Hot Pink")
end)
no work |
|
Bebee2Join Date: 2009-05-17 Post Count: 3985 |
-- So close yet so far.
plr = game.Players.LocalPlayer
object = script.Parent
admins = {"devSurface", "", ""}
game.Players.PlayerAdded:connect(function(new)
for _, v in pairs(admins) do
if new.Name == v then
script.Parent.Visible = true
else
script.Parent.Visible = false
end
end
end)
script.Parent.MouseButton1Down:connect(function()
plr.TeamColor = BrickColor.new("Hot Pink")
end) |
|
pointszJoin Date: 2013-02-09 Post Count: 1471 |
admins = {"devSurface", "PresidentGiorgi", "DoctorBrandon"}
game.Players.PlayerAdded:connect(function(new)
for _, v in pairs(admins) do
if new.Name == v then
script.Parent.Visible = true
else
script.Parent.Visible = false
end
end
end)
script.Parent.MouseButton1Down:connect(function()
plr.TeamColor = BrickColor.new("Lime green")
end)
no work |
|
pointszJoin Date: 2013-02-09 Post Count: 1471 |
Maybe it does work when we spawn the first time, but when we spawn first time we die to fix ourserlves so, playeradded is not an way to do it= |
|
pointszJoin Date: 2013-02-09 Post Count: 1471 |
bump |
|
|
admins = {"OurHonestFather", "devSurface", "PresidentGiorgi"}
game.Players.PlayerAdded:connect(function(p)
for i,v in pairs(admins) do
if p.Name == v.Name then
--do stuffz
end
end
end) |
|