|
| 03 Dec 2013 11:34 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) blueteamcolor = "Bright blue" if character.TeamColor == BrickColor.new(blueteamcolor) then script.Parent.BrickColor = BrickColor.new(blueteamcolor) end end) end) |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 03 Dec 2013 11:40 PM |
One, why make the variable longer than the name? Variables are suppose to help you shorten your code. Two, TeamColor is a property of Player, not Character.
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 03 Dec 2013 11:44 PM |
LEARN TO LUA! >:(
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2013 11:46 PM |
Um sorry but please get out of Scripting helpers if your just going to say "You can't script" "Learn to script"
And plus, it's Lua and you'd say
"Learn to code/script"
|
|
|
| Report Abuse |
|
|
|
| 03 Dec 2013 11:53 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) blueteamcolor=BrickColor.new("Bright blue") if player.TeamColor == blueteamcolor then script.Parent.BrickColor = blueteamcolor end end) end) |
|
|
| Report Abuse |
|
|
| |
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 04 Dec 2013 12:04 AM |
LEARN TO SCRIPT!!!
game.Players.PlayerAdded:connect(function(plr) if plr.TeamColor == BrickColor.new("Bright blue) then script.Parent.BrickColor = BrickColor.new("Bright blue") end end)
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 04 Dec 2013 12:07 AM |
Forgot a quote, LEARN TO SCRIPT!
game.Players.PlayerAdded:connect(function(plr) if plr.TeamColor == BrickColor.new("Bright blue") then script.Parent.BrickColor = BrickColor.new("Bright blue") end end)
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
| |
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 04 Dec 2013 12:08 AM |
Atleast I gave him the right code, you should go learn also.
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
|
| 04 Dec 2013 12:09 AM |
| I just ran through it really quick, it's 1 am here and i'm tired. So, yeah. |
|
|
| Report Abuse |
|
|
|
| 04 Dec 2013 12:10 AM |
| Also, telling people to learn to script doesn't make you any better, it just makes you look like an idiot. |
|
|
| Report Abuse |
|
|
qadoory
|
  |
| Joined: 29 Jul 2009 |
| Total Posts: 49 |
|
|
| 04 Dec 2013 12:11 AM |
| Why? Everyone should learn to "code/script". Even the advanced script-ers should learn how to script in my opinion. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 04 Dec 2013 12:13 AM |
Thanks, atlast someone with logic!
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
|
| 04 Dec 2013 12:14 AM |
| Yes, they should. But blurting it out making them feel like an idiot isn't helping them at all. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 04 Dec 2013 12:16 AM |
In all reality, I am still the one who helped him. Also, utired? Go to bed. No reason to keep giving people wrong code just because you want to stay up past your bedtime.
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
qadoory
|
  |
| Joined: 29 Jul 2009 |
| Total Posts: 49 |
|
|
| 04 Dec 2013 12:17 AM |
| That's the point though, making them feel like an idiot so they become determined to learn. :) |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 04 Dec 2013 12:25 AM |
You make perfect sense, you explained my point to perfection! XD
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
|
| 04 Dec 2013 12:25 AM |
@mic144 I already tried what you said before i even posted this Why do you think i posted about this? I needed some help, that doesn't mean you should say nasty things about it. And not all people should code/script Lua. It's just not for some people.
-----
And still I can't figure out what to do.. I've been having much trouble with brick colors and such |
|
|
| Report Abuse |
|
|
|
| 04 Dec 2013 12:25 AM |
@qa Not all people are like this, but most are. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 04 Dec 2013 12:26 AM |
game.Players.PlayerAdded:connect(function(plr) wait(2) if plr.TeamColor == BrickColor.new("Bright blue") then script.Parent.BrickColor = BrickColor.new("Bright blue") end end)
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 04 Dec 2013 12:27 AM |
Then you're saying he should just quit scripting? I agree.
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
|
| 04 Dec 2013 12:31 AM |
| No i'm saying they should try harder but without being nasty to them |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 04 Dec 2013 12:32 AM |
Script should be in some brick.
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
|
| 04 Dec 2013 12:34 AM |
| I think i should know that... |
|
|
| Report Abuse |
|
|