|
| 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 |
|
|
|
| 27 Jun 2014 01:04 PM |
| Dont just paste a script here and expect us to find the problem. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 27 Jun 2014 01:09 PM |
| Whoops I had a little typo that had a naughty word... |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 01:10 PM |
"Well what do you want me to do then?"
Wow. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 01:12 PM |
| I made it a number value and it still doesn't work... |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 27 Jun 2014 01:13 PM |
| if tonumber(script.Parent.Value) and tonumber(script.Parent.Value) <= 1 then |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 01:14 PM |
| http://www.roblox.com/Forum/ShowPost.aspx?PostID=80625843 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 27 Jun 2014 01:25 PM |
I still believe my point is valled. Anyways thanks for you help. Bai |
|
|
| Report Abuse |
|
|