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: name changing script

Previous Thread :: Next Thread 
Eclipsin is not online. 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 is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
26 Nov 2013 04:24 PM
[ Content Deleted ]
Report Abuse
LordPartyhat is not online. LordPartyhat
Joined: 19 Jun 2009
Total Posts: 271
26 Nov 2013 04:24 PM
u dont need speach marks on number values
Report Abuse
Eclipsin is not online. Eclipsin
Joined: 09 Feb 2012
Total Posts: 5197
26 Nov 2013 04:26 PM
changed both

still doesn't work
Report Abuse
Eclipsin is not online. 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 is not online. 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 is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
26 Nov 2013 04:30 PM
[ Content Deleted ]
Report Abuse
Eclipsin is not online. Eclipsin
Joined: 09 Feb 2012
Total Posts: 5197
26 Nov 2013 04:36 PM
changed to ==

still not working

-{E_
Report Abuse
Drybones3363 is not online. Drybones3363
Joined: 16 Aug 2013
Total Posts: 1547
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
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