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: Help?

Previous Thread :: Next Thread 
DcentroCaniniusCorax is not online. DcentroCaniniusCorax
Joined: 19 Feb 2011
Total Posts: 50
06 Nov 2014 12:32 PM
Script = workspace.GatePoint
function onClicked2()
if Script.Model.C.Transparency == 0 then
Script.Model.C.Transparency = 1
Script.Model.C.CanCollide = false
Script.Model.O.Transparency = 0
Script.Model.O.CanCollide = true
else
if Script.Model.C.Transparency == 1 then
Script.Model.C.Transparency = 0
Script.Model.C.CanCollide = true
Script.Model.O.Transparency = 1
Script.Model.O.CanCollide = false
end
end

Script.Model.ClickPart.ClickDetector.MouseClick:connect(onClicked2)

--------------------------------------------------------------------------------------------
If your a scripter, you should know what SHOULD happen. Im brand new at scripting, so I don't know my error. Thanks for helping if you do!
Report Abuse
DcentroCaniniusCorax is not online. DcentroCaniniusCorax
Joined: 19 Feb 2011
Total Posts: 50
06 Nov 2014 12:39 PM
Script = workspace.GatePoint
function onClicked2()
if Script.Model.C.Transparency == 0 then
Script.Model.C.Transparency = 1
Script.Model.C.CanCollide = false
Script.Model.O.Transparency = 0
Script.Model.O.CanCollide = true
else
Script.Model.C.Transparency = 0
Script.Model.C.CanCollide = true
Script.Model.O.Transparency = 1
Script.Model.O.CanCollide = false
end
end

Script.Model.ClickPart.ClickDetector.MouseClick:connect(onClicked2)


Still dosent work when you remove the if--then after the else.
Report Abuse
DcentroCaniniusCorax is not online. DcentroCaniniusCorax
Joined: 19 Feb 2011
Total Posts: 50
06 Nov 2014 01:56 PM
Bump
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