of     2   
chevron_rightchevron_rightchevron_right

KingOfInsertWars
#114240552Sunday, September 29, 2013 6:19 AM GMT

if Player.TeamColor == "Bright blue" then Checks if players in a team but cant remember how to do it. lol
noah
#114240711Sunday, September 29, 2013 6:23 AM GMT

if Player.TeamColor == BrickColor.new("Bright blue") then
KingOfInsertWars
#114240745Sunday, September 29, 2013 6:24 AM GMT

Thanks :)
KingOfInsertWars
#114240903Sunday, September 29, 2013 6:28 AM GMT

erm it isn't working :L player = script.Parent.Parent do wait(1) if Player.TeamColor == BrickColor.new("Bright yellow") then end end that's full script without the main stuff.
Legoman654
#114241126Sunday, September 29, 2013 6:33 AM GMT

You can't just say "do". It's not a slave in which you just give a demand, lol. You should look up on Lua loops in Roblox: http://wiki.roblox.com/index.php/Loops player = script.Parent.Parent; while true do -- an infinite loop, so it continues to run here wait(3); -- wait 3 seconds so it doesn't come near crash or lagging which it most likely wont if player.TeamColor == BrickColor.new("Bright yellow") then -- the p in player here should be lower case as that is how you defined it end end
KingOfInsertWars
#114241450Sunday, September 29, 2013 6:41 AM GMT

player = script.Parent.Parent do wait(2) if Player.TeamColor == BrickColor.new("Bright blue") then game.Lighting["tool"]:clone().Parent = player.Backpack end end -- Don't need a loop. -_- It's a one time thing... >_>
KingOfInsertWars
#114241507Sunday, September 29, 2013 6:42 AM GMT

never said I needed a loop anywhere.. And yes it still dose not work.
Legoman654
#114241685Sunday, September 29, 2013 6:46 AM GMT

I already said that you can't use the word "do".. That should have automatically led you to deleting it from your script. player = script.Parent.Parent; wait(2); if player.TeamColor == BrickColor.new("Bright blue") then game.Lighting["tool"]:Clone().Parent = player.Backpack; end end
KingOfInsertWars
#114241695Sunday, September 29, 2013 6:47 AM GMT

*Needs help from someone who knows what there doing!*
lampwnage121
#114241759Sunday, September 29, 2013 6:49 AM GMT

@Lego you can put do in there although it is pointless. @OP, He told you what you did wrong. You put player = ... then you used if Player Capitalization matters.
Legoman654
#114241793Sunday, September 29, 2013 6:50 AM GMT

You can actually put do in there? I never knew.
KingOfInsertWars
#114241803Sunday, September 29, 2013 6:50 AM GMT

yup yup but nothing he told me has fixed anything soo yeh and everything he told is almost useless
lampwnage121
#114241820Sunday, September 29, 2013 6:51 AM GMT

> do print("Still Works") end Still Works
Legoman654
#114241834Sunday, September 29, 2013 6:52 AM GMT

I told you what was wrong and I fixed your script, yet you post back with 'new' script that made no changes to what I told you to do. You're just not making the changes I'm telling you..
KingOfInsertWars
#114241901Sunday, September 29, 2013 6:54 AM GMT

--It's this line! if player.TeamColor == BrickColor.new("Bright blue") then 100% sure its this. Something is wrong here... without it it works fine but both teams get double tools and they don't work right :p
lampwnage121
#114241909Sunday, September 29, 2013 6:54 AM GMT

Add this is: print( player.TeamColor) Come back with the output.
lampwnage121
#114241930Sunday, September 29, 2013 6:54 AM GMT

in*
KingOfInsertWars
#114241944Sunday, September 29, 2013 6:55 AM GMT

dude I copied and pasted it right away did nothing it dose not work. :p maybe you should test it :o
lampwnage121
#114241994Sunday, September 29, 2013 6:56 AM GMT

It works, Even though I knew it would work I tested it anyway. > if game.Players.Player1.TeamColor == BrickColor.new("Bright blue") then print("Derp") end Derp
KingOfInsertWars
#114242019Sunday, September 29, 2013 6:57 AM GMT

got it working and yesh I was in a team >_> btw why do you put the ; on the scripts? like script.parent;
lampwnage121
#114242077Sunday, September 29, 2013 6:58 AM GMT

Some people put it to look nicer, I find it pointless though.
KingOfInsertWars
#114242209Sunday, September 29, 2013 7:02 AM GMT

--pointless and more to type :p --that's like putting -- hello at every end of a script o.o function onTouched(hit) local human = hit.Parent:FindFirstChild("Humanoid") if hum ~= nil then local player = game.Players:findFirstChild(hit.Parent) if player.Name == script.nam.Value or player.TeamColor == BrickColor.new("Bright yellow") then human.Health = 0 else end end end script.Parent.Touched:connect(onTouch)
lampwnage121
#114242271Sunday, September 29, 2013 7:04 AM GMT

local human = hit.Parent:FindFirstChild("Humanoid") if hum ~= nil then
lampwnage121
#114242281Sunday, September 29, 2013 7:04 AM GMT

>human >hum
KingOfInsertWars
#114242392Sunday, September 29, 2013 7:07 AM GMT

-- attempt to call a nil value? function onTouched(hit) local human = hit.Parent:FindFirstChild("Humanoid") if human ~= nil then local player = game.Players:findFirstChild(hit.Parent) if player.Name == script.nam.Value or player.TeamColor == BrickColor.new("Bright yellow") then human.Health = 0 print'works' else end end end script.Parent.Touched:connect(onTouch)

    of     2   
chevron_rightchevron_rightchevron_right