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: Diss.. . Izing... Working....

Previous Thread :: Next Thread 
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
27 Jun 2014 01:03 PM
script.Parent.Changed:connect(function(Val)
if script.Parent.Value <= 1 then --This is the part that isn't working....
game.Players.LocalPlayer.PlayerGui.ScreenGui.Desc.Text = ("")
game.Players.LocalPlayer.PlayerGui.ScreenGui.Title.Text =("")
game.Players.LocalPlayer.PlayerGui.ScreenGui.ToolImage.Image = ("")
game.Players.LocalPlayer.PlayerGui.ScreenGui.Dur.Text = ("")
script.Parent.Parent.Sound:play()
script.Parent.Parent:Destroy()
else
return
end

end)

~~Can't wait for Avatar:Legend Of Korra tonight~~
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
27 Jun 2014 01:04 PM
Dont just paste a script here and expect us to find the problem.
Report Abuse
PerpetualMovement is not online. PerpetualMovement
Joined: 04 Dec 2012
Total Posts: 1001
27 Jun 2014 01:05 PM
if script.Parent.Value <= 1 then

That part looks fine, what is script.Parent? A stringvalue? IntValue?
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
27 Jun 2014 01:08 PM
@SenseiWarrior Well what do you want me to do then? Lol

@ PerpetualMovement Its a string value... And if I have it ass "if script.Parent.Value == "0" then"
it works fine but I want it to be anything less than 1
Report Abuse
PerpetualMovement is not online. PerpetualMovement
Joined: 04 Dec 2012
Total Posts: 1001
27 Jun 2014 01:09 PM
You can't compare a string value to a number value. You have to make script.Parent a NumberValue or IntValue
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
27 Jun 2014 01:09 PM
Whoops I had a little typo that had a naughty word...
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
27 Jun 2014 01:10 PM
"Well what do you want me to do then?"

Wow.
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
27 Jun 2014 01:12 PM
I made it a number value and it still doesn't work...
Report Abuse
azabat is not online. azabat
Joined: 28 Mar 2008
Total Posts: 29
27 Jun 2014 01:13 PM
if script.Parent.Value <= 1 then

Missing the "" around the 1.

If the script.Parent is a string value, I'm uncertain if you can use greater/lesser operators. Try using a number value instead.
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
27 Jun 2014 01:13 PM
@SenseiWarrior This is "Script Helpers"
I made a script,
It doesn't work,
I posted the script here asking what I did wrong
and you tell me not to post my script here? What is this Fourm for then? e_e
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
27 Jun 2014 01:13 PM
if tonumber(script.Parent.Value) and tonumber(script.Parent.Value) <= 1 then
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
27 Jun 2014 01:14 PM
http://www.roblox.com/Forum/ShowPost.aspx?PostID=80625843
Report Abuse
azabat is not online. azabat
Joined: 28 Mar 2008
Total Posts: 29
27 Jun 2014 01:15 PM
If your .Changed is referring to the script.Parent, then replace script.Parent.Value with Val.Value and see what happens.
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
27 Jun 2014 01:16 PM
@SenseiWarrior
First thanks. Second I did say what part isn't working "if script.Parent.Value <= 1 then --This is the part that isn't working...."
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
27 Jun 2014 01:17 PM
I just saw that.
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
27 Jun 2014 01:19 PM
@SenseiWarrior So you're telling me that you complained about me posting something... With out even reading it..... Wow.
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
27 Jun 2014 01:21 PM
I didnt see it; you couldve typed out your problem at top of the thread and then posted the script after it.
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
27 Jun 2014 01:25 PM
I still believe my point is valled.
Anyways thanks for you help. Bai
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