PRGJoin Date: 2007-06-19 Post Count: 4185 |
I need a script where when you are wearing one of two certain shirts, you will automatically spawn on a certain team. Like, lets say the team is called "Non - Noobs"
And people's names entered in the script will also be spawned to the team. |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
bu-u-u-uhmp |
|
|
function onEnter(newplayer)
if newplayer.Character.Torso.roblox.Texture = "instert here" then newplayer.TeamColor = BrickColor.new(26) return end
end
end
game.Players:ChildAdded(onEnter) |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
It needs two entries to put shirt in. |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
And admin names. |
|
DingDong272Top 100 PosterJoin Date: 2007-12-08 Post Count: 9860 |
use lava's script and put it in the onPlayerEntered part of this script:
http://www.roblox.com/Model.aspx?id=400276 |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
I need a script where you can put admins' names and TWO shirt graphics so the wearer of ONE OF THE TWO shirts goes to the certain team! |
|
DingDong272Top 100 PosterJoin Date: 2007-12-08 Post Count: 9860 |
Can't you just edit my script? Or do I need to do it? |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
You. I end up ruining scripts... |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
I can't even modify Shanethe12's paintball team. |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
Script. |
|
DingDong272Top 100 PosterJoin Date: 2007-12-08 Post Count: 9860 |
Ok.
(my script builder works! whee!) check it out? |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
buuuuuuump |
|
DingDong272Top 100 PosterJoin Date: 2007-12-08 Post Count: 9860 |
Ok. I'm working on it right now. I'll put it in my models and post the link here when I'm done. |
|
RomulusJoin Date: 2008-02-25 Post Count: 187 |
function onPlayerEntered(newPlayer)
while true do
if newPlayer.Character~=nil then break end
wait()
end
if newPlayer.Character:FindFirstChild("Shirt Graphic").Graphic == "Entry 1" or newPlayer.Character:FindFirstChild("Shirt Graphic").Graphic == "Entry 2" then
newPlayer.TeamColor = game.Teams.Admins.TeamColor
end
end
game.Players.ChildAdded:connect(onPlayerEntered) |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
"And people's names entered in the script will also be spawned to the team." |
|
RomulusJoin Date: 2008-02-25 Post Count: 187 |
admins = { }
function onPlayerEntered(newPlayer)
while true do
if newPlayer.Character~=nil then break end
wait()
end
if newPlayer.Character:FindFirstChild("Shirt Graphic").Graphic == "Entry 1" or newPlayer.Character:FindFirstChild("Shirt Graphic").Graphic == "Entry 2" then
newPlayer.TeamColor = game.Teams.Admins.TeamColor
end
for i = 1,#admins do
if string.lower(admins[i])==string.lower(newPlayer.Name) then
newPlayer.TeamColro = game.Teams.Admins.TeamColor
end
end
end
game.Players.ChildAdded:connect(onPlayerEntered) |
|
RomulusJoin Date: 2008-02-25 Post Count: 187 |
admins = { }
function onPlayerEntered(newPlayer)
while true do
if newPlayer.Character~=nil then break end
wait()
end
if newPlayer.Character:FindFirstChild("Shirt Graphic").Graphic == "Entry 1" or newPlayer.Character:FindFirstChild("Shirt Graphic").Graphic == "Entry 2" then
newPlayer.TeamColor = game.Teams.Admins.TeamColor
end
for i = 1,#admins do
if string.lower(admins[i])==string.lower(newPlayer.Name) then
newPlayer.TeamColor = game.Teams.Admins.TeamColor -- sorry, I type 100+ wpm, its easy to make mistakes and miss them.
end
end
end
game.Players.ChildAdded:connect(onPlayerEntered) |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
Where do I put the specrific team name or team color? |
|
DingDong272Top 100 PosterJoin Date: 2007-12-08 Post Count: 9860 |
in this:
TeamColor = game.Teams.TEAM-NAME-HERE.TeamColor
it says "Admins" in the script. |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
Won't work
admins = {"PRG", "Player"}
function onPlayerEntered(newPlayer)
while true do
if newPlayer.Character~=nil then break end
wait()
end
if newPlayer.Character:FindFirstChild("Shirt Graphic").Graphic == "http://www.roblox.com/asset/?version=1&id=1176995" or newPlayer.Character:FindFirstChild("Shirt Graphic").Graphic == "http://www.roblox.com/asset/?version=1&id=1116975" then
newPlayer.TeamColor = game.Teams.Admins.TeamColor
end
for i = 1,#admins do
if string.lower(admins[i])==string.lower(newPlayer.Name) then
newPlayer.TeamColor = game.Teams.Non-Noobs.TeamColor -- sorry, I type 100+ wpm, its easy to make mistakes and miss them.
end
end
end
game.Players.ChildAdded:connect(onPlayerEntered) |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
bu-u-ump |
|
RomulusJoin Date: 2008-02-25 Post Count: 187 |
admins = {"PRG", "Player"}
function onPlayerEntered(newPlayer)
while true do
if newPlayer.Character~=nil then break end
wait()
end
if newPlayer.Character:FindFirstChild("Shirt Graphic").Graphic == "http://www.roblox.com/asset/?version=1&id=1176995" or newPlayer.Character:FindFirstChild("Shirt Graphic").Graphic == "http://www.roblox.com/asset/?version=1&id=1116975" then
newPlayer.TeamColor = game.Teams.Admins.TeamColor
end
for i = 1,#admins do
if string.lower(admins[i])==string.lower(newPlayer.Name) then
newPlayer.TeamColor = game.Teams.Non-Noobs.TeamColor -- sorry, I type 100+ wpm, its easy to make mistakes and miss them.
end
end
end
end
game.Players.ChildAdded:connect(onPlayerEntered) |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
Here is a suggestion, modify the script that is in Haunted Hill that puts you on the other team when you are wearin a certain hat. But instead of a hat, it's a shirt. |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
oh ya, still no worky. |
|