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: Reflectance change script doesn't work?

Previous Thread :: Next Thread 
Regium is not online. Regium
Joined: 11 May 2013
Total Posts: 6215
20 Jul 2014 10:26 PM
Note: This did work prior to one of robloxs updates; any help?
script.Parent.Touched:connect(function(Hit)
script.Parent.Reflectance = 0.5
wait()
for i = 0.5,0.1,-0.05 do
script.Parent.Reflectance = i
wait()
end
end)

Report Abuse
UncleTaz is not online. UncleTaz
Joined: 19 Aug 2009
Total Posts: 12795
20 Jul 2014 10:31 PM
It does work.

But you should remove Hit.

A script like this doesn't require a parameter.
Report Abuse
Regium is not online. Regium
Joined: 11 May 2013
Total Posts: 6215
20 Jul 2014 10:42 PM
It's not working for me ._.
Report Abuse
UncleTaz is not online. UncleTaz
Joined: 19 Aug 2009
Total Posts: 12795
20 Jul 2014 10:45 PM
It's really hard to say.

To test it try something like

print ' It has been touched '

And in solo, click the brick so you can see it's reflectance changing.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
20 Jul 2014 10:57 PM
I tested it, the first script does work.

I would suggest a debounce but it does work.
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