|
| 06 Jul 2012 04:13 PM |
What is wrong with this?
-- Made by Plesantly8 --
if script.Parent.Throttle~=0 then script.Parent.Parent.InUse = true elseif script.Parent.Parent.InUse = false end
It says InUseChanger:4: 'then' expected near '=' |
|
|
| Report Abuse |
|
|
Biostream
|
  |
| Joined: 28 Mar 2011 |
| Total Posts: 913 |
|
|
| 06 Jul 2012 04:16 PM |
elseif (condition) then.
The error says it all my friend. You forgot a then |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2012 04:17 PM |
Also,
elseif script.Parent.Parent.InUse == false then
Two equal signs for if statements, or better yet:
elseif not script.Parent.Parent.InUse then
> † KMXD †
|
|
|
| Report Abuse |
|
|
|
| 06 Jul 2012 04:18 PM |
| Replace "elseif" with "else" |
|
|
| Report Abuse |
|
|
WishNite
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 15828 |
|
|
| 06 Jul 2012 04:19 PM |
| Conditional statements need either a == or ~= |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2012 04:19 PM |
Ah, now that I see what you're trying to do, use cheat's suggestion.
> † KMXD † |
|
|
| Report Abuse |
|
|
LAAAGH
|
  |
| Joined: 24 Feb 2012 |
| Total Posts: 3 |
|
|
| 06 Jul 2012 04:19 PM |
if script.Parent.Throttle ~= 0 then script.Parent.Parent.InUse = true elseif script.Parent.Parent.InUse == false end
-- LAAAGH |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2012 04:21 PM |
| Thank you cheat. Your my hero for the next 4 and half seconds. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2012 04:22 PM |
| No I didn't put two equal signs at the one on the end because I am going to change it to false. |
|
|
| Report Abuse |
|
|