Eclipsin
|
  |
| Joined: 09 Feb 2012 |
| Total Posts: 5197 |
|
|
| 26 Nov 2013 04:22 PM |
it's been awhile since i coded and i'm a little rusty
by that i mean a lot
i inserted this script into a model:
--
script.Parent = sign script.Parent.Part = water
while true do
if water.Transparency = '0.4' then sign.Name = "The ice is currently melted. Don't fall in!" end
if water.Transparency = '0' then sign.Name = "The ice is currently frozen. You can walk on it!" end
--
the model has a part named "Head" in it that will change names, a humanoid, and a part named water that freezes and thaws every 30 seconds
can you tell me why this isn't working
-{E_
|
|
|
| Report Abuse |
|
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
|
| 26 Nov 2013 04:24 PM |
| u dont need speach marks on number values |
|
|
| Report Abuse |
|
|
Eclipsin
|
  |
| Joined: 09 Feb 2012 |
| Total Posts: 5197 |
|
|
| 26 Nov 2013 04:26 PM |
changed both
still doesn't work |
|
|
| Report Abuse |
|
|
Eclipsin
|
  |
| Joined: 09 Feb 2012 |
| Total Posts: 5197 |
|
|
| 26 Nov 2013 04:28 PM |
output: 17:26:34.541 - Workspace.Model.Script:7: 'then' expected near '='
-{E_ |
|
|
| Report Abuse |
|
|
qrrrq
|
  |
| Joined: 27 Jan 2013 |
| Total Posts: 1252 |
|
|
| 26 Nov 2013 04:30 PM |
| You need two '=' signs in an 'if' statement because you are checking to see if is is 0.4 not making it 0.4. |
|
|
| Report Abuse |
|
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
Eclipsin
|
  |
| Joined: 09 Feb 2012 |
| Total Posts: 5197 |
|
|
| 26 Nov 2013 04:36 PM |
changed to ==
still not working
-{E_ |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 04:39 PM |
idk but somehow you will need to change the model name or you can make 2 invisible bricks named head with humanoids make the transparency of 1 of them 1 while water/ice transparency is > 0.4 That will make it easier |
|
|
| Report Abuse |
|
|