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
 

I am frustrated, this script will simply not work...

Previous Thread :: Next Thread 
Mario5422 is not online. Mario5422
Joined: 17 Nov 2008
Total Posts: 3922
21 Jul 2011 09:17 PM
It seems like nobody can help me...

So anyway, for some reason it works in Play Solo but not in Live mode.

It is supposed to find what type of BC the player has, and than display it on the GUI.

----
lr = game:GetService("Players").LocalPlayer
if Plr.MembershipType == "OutrageousBuildersClub" then
script.Parent.Text = "Outrageous"
elseif Plr.MembershipType == "TurboBuildersClub" then
script.Parent.Text = "Turbo"
elseif Plr.MembershipType == "BuildersClub" then
script.Parent.Text = "Yes"
else
script.Parent.Text = "No"
end
----

All help is appreciated. Thanks
Report Abuse
lineriderboy is not online. lineriderboy
Joined: 02 Feb 2008
Total Posts: 67
21 Jul 2011 09:26 PM
Im not a scripting expert but i do know enough to understand a basic script.

I noticed that your string:
lr = game:GetService("Players").LocalPlayer

"lr" is not the same as:

if Plr.MembershipType == "OutrageousBuildersClub" then

"Plr" try changing all the "Plr"'s to "lr"'s and see how it goes.
Report Abuse
salem9 is not online. salem9
Joined: 25 Oct 2008
Total Posts: 23312
21 Jul 2011 09:28 PM
Linerider aced that. I missed that. :P
Report Abuse
Mario5422 is not online. Mario5422
Joined: 17 Nov 2008
Total Posts: 3922
21 Jul 2011 09:58 PM
Sorry, I actually had Plr at the beginning, I guess when I typed the thread it got cut off :/
Report Abuse
lucile is not online. lucile
Joined: 04 May 2008
Total Posts: 123
21 Jul 2011 10:02 PM
._.
Report Abuse
TigerBloodd is not online. TigerBloodd
Joined: 24 Oct 2010
Total Posts: 2430
21 Jul 2011 10:02 PM
game.Players.PlayerAdded:connect(function(Plr)
Plr:WaitForDataReady()
if Plr.MembershipType == "OutrageousBuildersClub" then
script.Parent.Text = "Outrageous"
elseif Plr.MembershipType == "TurboBuildersClub" then
script.Parent.Text = "Turbo"
elseif Plr.MembershipType == "BuildersClub" then
script.Parent.Text = "Yes"
else
script.Parent.Text = "No"
end
end)
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