generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Won't work

Previous Thread :: Next Thread 
halofire902 is not online. halofire902
Joined: 30 May 2010
Total Posts: 1587
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 is not online. 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 is not online. 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
halofire902 is not online. halofire902
Joined: 30 May 2010
Total Posts: 1587
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
godphantom555 is not online. godphantom555
Joined: 12 Mar 2011
Total Posts: 360
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
halofire902 is not online. halofire902
Joined: 30 May 2010
Total Posts: 1587
03 Dec 2013 11:59 PM
That didn't work..
Report Abuse
mic144 is not online. 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 is not online. 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
godphantom555 is not online. godphantom555
Joined: 12 Mar 2011
Total Posts: 360
04 Dec 2013 12:07 AM
"LEARN TO SCRIPT!!" gtfo.
Report Abuse
mic144 is not online. 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
godphantom555 is not online. godphantom555
Joined: 12 Mar 2011
Total Posts: 360
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
godphantom555 is not online. godphantom555
Joined: 12 Mar 2011
Total Posts: 360
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 is not online. 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 is not online. 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
godphantom555 is not online. godphantom555
Joined: 12 Mar 2011
Total Posts: 360
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 is not online. 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 is not online. 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 is not online. 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
halofire902 is not online. halofire902
Joined: 30 May 2010
Total Posts: 1587
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
halofire902 is not online. halofire902
Joined: 30 May 2010
Total Posts: 1587
04 Dec 2013 12:25 AM
@qa
Not all people are like this, but most are.
Report Abuse
mic144 is not online. 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 is not online. 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
halofire902 is not online. halofire902
Joined: 30 May 2010
Total Posts: 1587
04 Dec 2013 12:31 AM
No i'm saying they should try harder but without being nasty to them
Report Abuse
mic144 is not online. 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
halofire902 is not online. halofire902
Joined: 30 May 2010
Total Posts: 1587
04 Dec 2013 12:34 AM
I think i should know that...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 2Go to page: [1], 2 Next
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image