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: Leaderstat text problem

Previous Thread :: Next Thread 
IcyArticunoX is not online. IcyArticunoX
Joined: 09 Jul 2010
Total Posts: 864
12 May 2012 06:19 PM
I've made a script for my Mario-like game. This script goes inside an invisible brick near a person (in this case, Toadsworth who debuted in Super Mario Sunshine) and when the script's parent is stepped on, the person brick (brick with a decal on it) that is in the same model will change it's text. If the person who stepped on it has completed 6 levels in my game (indicated on the leaderboard in my game) then the text will be different. If not, then it has normal text. The normal text moved fine, but the alternate text would stop moving at "Wait... it's you!" I'm a novice scripter, so could somebody point out the flaw in the script?


enabled = true
function onTouch(part)
if not enabled then return end
enabled = false
ROBLOX=script.Parent.Parent
SCRIPT=script.Parent
player = game.Players:GetPlayerFromCharacter(part.Parent)
ROBLOX.Name="Stand back, please."
wait(2)
if player ~= nil and player.leaderstats.Level.Value == 6 then
ROBLOX.Name="Wait... it's you!"
else
ROBLOX.Name="I have been ordered to protect this house until Princess Peach returns."
wait(2)
if player ~= nil and player.leaderstats.Level.Value == 6 then
ROBLOX.Name="The hero! You saved Princess Peach, didn't you?"
else
ROBLOX.Name="Even if she was here, however, you'd need her permission to enter the house."
wait(2)
if player ~= nil and player.leaderstats.Level.Value == 6 then
ROBLOX.Name="Come on. She's been waiting in the house."
else
ROBLOX.Name="Go along, now."
wait(2)
ROBLOX.Name="Toadsworth"
wait(0.1)
enabled = true
end
end
end
end
script.Parent.Touched:connect(onTouch)
Report Abuse
IcyArticunoX is not online. IcyArticunoX
Joined: 09 Jul 2010
Total Posts: 864
12 May 2012 06:41 PM
Bump.
Report Abuse
IcyArticunoX is not online. IcyArticunoX
Joined: 09 Jul 2010
Total Posts: 864
12 May 2012 07:03 PM
Bump.
Report Abuse
IcyArticunoX is not online. IcyArticunoX
Joined: 09 Jul 2010
Total Posts: 864
12 May 2012 07:37 PM
BUMP!
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
12 May 2012 07:45 PM
Output?
Report Abuse
IcyArticunoX is not online. IcyArticunoX
Joined: 09 Jul 2010
Total Posts: 864
12 May 2012 08:32 PM
20:31:07 - Script "Workspace.Stand back, please..Part.Script", Line 10
20:31:07 - stack end
Report Abuse
IcyArticunoX is not online. IcyArticunoX
Joined: 09 Jul 2010
Total Posts: 864
12 May 2012 08:37 PM
Someone please help! Please!
Report Abuse
IcyArticunoX is not online. IcyArticunoX
Joined: 09 Jul 2010
Total Posts: 864
12 May 2012 08:44 PM
...
Report Abuse
IcyArticunoX is not online. IcyArticunoX
Joined: 09 Jul 2010
Total Posts: 864
12 May 2012 08:55 PM
HELLO?!
Report Abuse
IcyArticunoX is not online. IcyArticunoX
Joined: 09 Jul 2010
Total Posts: 864
12 May 2012 09:20 PM
BUMP!
Report Abuse
IcyArticunoX is not online. IcyArticunoX
Joined: 09 Jul 2010
Total Posts: 864
12 May 2012 09:30 PM
Oh my god...
Report Abuse
IcyArticunoX is not online. IcyArticunoX
Joined: 09 Jul 2010
Total Posts: 864
12 May 2012 09:51 PM
BUMP! BUMP! BUMP!
Report Abuse
abaw7 is not online. abaw7
Joined: 23 Oct 2009
Total Posts: 745
12 May 2012 09:54 PM
Have it say print('1') before the line you think it is and print('2') after the line you think it is continue on until you get it to only print 1 then post that line and any variables that may be assoiciated with it.
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