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
 

Re: Gamepass Help

Previous Thread :: Next Thread 
Kakuro02 is not online. Kakuro02
Joined: 23 Oct 2010
Total Posts: 1681
22 Jul 2014 01:04 PM
Teams From Recent attempts I have

game.Players.PlayerAdded:connect(function(plr)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr, 167543744)) then
plr.TeamColor = BrickColor.new("Bright blue")
else
plr.TeamColor = BrickColor.new("Bright red")
end
end)
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
22 Jul 2014 01:07 PM
Is it in a local script?
Report Abuse
Kakuro02 is not online. Kakuro02
Joined: 23 Oct 2010
Total Posts: 1681
22 Jul 2014 01:09 PM
No, why?
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
22 Jul 2014 01:12 PM
http://wiki.roblox.com/index.php?title=Game_Pass
Report Abuse
Kakuro02 is not online. Kakuro02
Joined: 23 Oct 2010
Total Posts: 1681
22 Jul 2014 01:14 PM
?? Would I need to put it in a Local script?
Report Abuse
super10099 is not online. super10099
Joined: 30 Jan 2010
Total Posts: 1102
22 Jul 2014 01:15 PM
yes
Report Abuse
Kakuro02 is not online. Kakuro02
Joined: 23 Oct 2010
Total Posts: 1681
22 Jul 2014 01:17 PM
I did that, It does not work. Would I need to edit the script?


game.Players.PlayerAdded:connect(function(plr)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr, 167543744)) then
plr.TeamColor = BrickColor.new("Bright blue")
else
plr.TeamColor = BrickColor.new("Bright red")
end
end)
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
22 Jul 2014 01:22 PM
":PlayerOwnsAssest" > ":PlayerHasPass"
Report Abuse
Kakuro02 is not online. Kakuro02
Joined: 23 Oct 2010
Total Posts: 1681
22 Jul 2014 01:25 PM
Still doesn't work. Do I need to make the team AutoAssignable?
Report Abuse
Atlamillia is not online. Atlamillia
Joined: 10 Sep 2011
Total Posts: 670
22 Jul 2014 02:42 PM
local scripts have to do with the players and some other properties like the camera
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