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
 

Why does this not work!

Previous Thread :: Next Thread 
NiceCake123 is not online. NiceCake123
Joined: 24 Dec 2011
Total Posts: 972
23 Jan 2013 04:31 PM
How do I change top surface of part

function h(hit)
if game.Workspace.Base.Locked == true then
game.Workspace.Base.Surface.TopSurface.Smooth = true
end
end
script.Parent.Touched:connect(h)

wait(5)

game.Workspace.Base.Reflectance = 0
Report Abuse
leolion113 is not online. leolion113
Joined: 11 Oct 2008
Total Posts: 3336
23 Jan 2013 04:44 PM
function h(hit)
if Workspace.Base.Locked then
Workspace.Base.TopSurface = "Smooth"
end
end
script.Parent.Touchec:connect(h)

I do not know what you're doing with the ending, so I've left it out. Your issue was on the third line since "Smooth" isn't a bool value, etc and you there's no 'sub sections' (If you get what I mean. Reference to the "Base.Surface." bit.)
Report Abuse
leolion113 is not online. leolion113
Joined: 11 Oct 2008
Total Posts: 3336
23 Jan 2013 04:45 PM
Eurgh, I mistyped ".Touched"
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