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 » Scripters
Home Search
 

Re: Why doesnt this work!

Previous Thread :: Next Thread 
spider10111 is not online. spider10111
Joined: 02 Nov 2012
Total Posts: 865
23 Mar 2016 11:23 AM
function door() -- What the function is
game.Workspace.Part.Transparency = 0.75
game.Workspace.Part.CanCollide = false
game.Workspace.nob.Transparency = 0.75
game.Workspace.nob.CanCollide = false
wait(2)
game.Workspace.Part.Transparency = 0
game.Workspace.Part.CanCollide = true
game.Workspace.nob.Transparency = 0
game.Workspace.nob.CanCollide = true
end

game.Workspace.Part.ClickDetector.MouseClick:connect(door)

if game.Workspace.Part.Transparency == 0.75 then
game.Workspace.light.Anchored = false
end
Report Abuse
IntensifiedMxiko is not online. IntensifiedMxiko
Joined: 20 Apr 2012
Total Posts: 264
23 Mar 2016 11:25 AM
try local function


Report Abuse
spider10111 is not online. spider10111
Joined: 02 Nov 2012
Total Posts: 865
23 Mar 2016 11:39 AM
they both work just the "if" statement doesnt
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
23 Mar 2016 12:25 PM
It does, but it only runs once.
Report Abuse
TacticalKiller91 is not online. TacticalKiller91
Joined: 28 Jan 2014
Total Posts: 228
23 Mar 2016 01:14 PM
game.Workspace.light??????
Report Abuse
spider10111 is not online. spider10111
Joined: 02 Nov 2012
Total Posts: 865
23 Mar 2016 03:14 PM
yes. when the dorr is clicked it is opened and the light drops

(I want the light to become green but im testing it with eaier command
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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