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
 

help

Previous Thread :: Next Thread 
Maileh is not online. Maileh
Joined: 14 Jun 2011
Total Posts: 1067
05 Sep 2013 12:01 AM
Playr = game.Players
script.Parent.Button.Click.MouseClick:connect(function(cl)
if Playr:GetPlayerFromCharacter(cl.Parent).TeamColor == "Navy blue" then print
print("hi")
end
end)
y no work. qq
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
05 Sep 2013 12:07 AM
First 3 lines each have a problem, good job.

1) Playr isn't really a "Player"
2) Unless Click is a ClickDetector, you have the wrong event
3) BrickColor.new("Navy blue")
3) random print
Report Abuse
Maileh is not online. Maileh
Joined: 14 Jun 2011
Total Posts: 1067
05 Sep 2013 12:08 AM
facedesk i forgot a BrickColor.new("Navy blue")
omg
Report Abuse
Maileh is not online. Maileh
Joined: 14 Jun 2011
Total Posts: 1067
05 Sep 2013 12:10 AM
Workspace.Main:2: attempt to index a nil value
00:09:25.153 - Script 'Workspace.Main', Line 2
00:09:25.154 - stack end
00:09:25.154 - Disconnected event because of exception
qqqqqqqqqqqqqq
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
05 Sep 2013 12:12 AM
idk what this is
script.Parent.Button.Click.MouseClick
Report Abuse
Maileh is not online. Maileh
Joined: 14 Jun 2011
Total Posts: 1067
05 Sep 2013 12:12 AM
Click = ClickDetector
ok
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
05 Sep 2013 12:14 AM
script.Parent.Button.Click.MouseClick:connect(function(Playr)
if Playr.TeamColor == BrickColor.new("Navy blue") then
print("hi")
end
end)
Report Abuse
Maileh is not online. Maileh
Joined: 14 Jun 2011
Total Posts: 1067
05 Sep 2013 12:15 AM
omg it works ty
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
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