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: why does this not work?

Previous Thread :: Next Thread 
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
05 Aug 2012 12:42 PM
local isOn = true

function on()
isOn = true
script.Parent.Wall.Transparency = 0
script.Parent.bar.Transparency = 0
script.Parent.Box.Box1.Box2.Box3.Transparency = 1
script.Parent.Box.Box1.Box2.Box3.CanCollide = false
script.Parent.Wall.CanCollide = true
end

function off()
isOn = false
script.Parent.Box.Box1.Box2.Box3.Transparency = 0
script.Parent.Wall.Transparency = 0
script.Parent.bar.Transparency = 0
script.Parent.Box.Box1.Box2.Box3.CanCollide = true
script.Parent.Wall.CanCollide = true
end

function onClicked()

if isOn == true then off() else on() end

end

script.Parent.bar.ClickDetector.MouseClick:connect(onClicked)

on()

------------------------------------------------------------------------------------------

I tried it out and it wont work... :P
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
05 Aug 2012 12:43 PM
:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D::D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:DD:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D


Happy or sad faces?
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
05 Aug 2012 12:44 PM
My ROBLOX Games Catalog People Build Builders Club Contests ForumBlog Help


Starting Roblox...
Connecting to Players...
Gameplay sponsored by:
Loading 0% - Starting game...
Want to get rid of these ads? [ report ]

Home Search Profile MyForums
ROBLOX Forum > ROBLOX Game > Scripting Helpers > why does this not work?


Email me when someone replies to this thread Display using: Flat View Threaded View Oldest to newest Newest to oldest
Previous Thread :: Next Thread

Author Thread: why does this not work?
piepienoob


Joined: 21 Aug 2011
Total Posts: 128
Roblox D…

why does this not work?
Posted: 08-05-2012 10:42 AM
local isOn = true

function on()
isOn = true
script.Parent.Wall.Transparency = 0
script.Parent.bar.Transparency = 0
script.Parent.Box.Box1.Box2.Box3.Transparency = 1
script.Parent.Box.Box1.Box2.Box3.CanCollide = false
script.Parent.Wall.CanCollide = true
end

function off()
isOn = false
script.Parent.Box.Box1.Box2.Box3.Transparency = 0
script.Parent.Wall.Transparency = 0
script.Parent.bar.Transparency = 0
script.Parent.Box.Box1.Box2.Box3.CanCollide = true
script.Parent.Wall.CanCollide = true
end

function onClicked()

if isOn == true then off() else on() end

end

script.Parent.bar.ClickDetector.MouseClick:connect(onClicked)

on()

------------------------------------------------------------------------------------------

I tried it out and it wont work... :P


Report Abuse

piepienoob


Joined: 21 Aug 2011
Total Posts: 128
Roblox D…

Re: why does this not work?
Posted: 08-05-2012 10:43 AM
:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D::D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:DD:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D


Happy or sad faces?


Report Abuse

Previous Thread :: Next Thread

Page 1 of 1



ROBLOX Forum > ROBLOX Game > Scripting Helpers > why does this not work?

[ report ]

Privacy Policy | Advertise with Us | Press | Contact Us | About Us | Blog | Jobs | Parents
Free Games | All | Building | Horror | Town and City | Military | Comedy | Medieval | Adventure | Sci-Fi | Naval | FPS | RPG | Sports | Fighting | Western
ROBLOX, "Online Building Toy", characters, logos, names, and all related indicia are trademarks of ROBLOX Corporation, ©2012. Patents pending. ROBLOX is not sponsored, authorized or endorsed by any producer of plastic building bricks, including The LEGO Group, MEGA Brands, and K'Nex, and no resemblance to the products of these companies is intended. Use of this site signifies your acceptance of the Terms and Conditions.
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
05 Aug 2012 12:51 PM
The model is in my models look for it :D
Report Abuse
cheatmaster18 is not online. cheatmaster18
Joined: 29 Oct 2010
Total Posts: 1871
05 Aug 2012 12:51 PM
I can not see any errors in the script. Are you sure the bricks and models on the right place?
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
05 Aug 2012 01:25 PM
idk
Report Abuse
cheatmaster18 is not online. cheatmaster18
Joined: 29 Oct 2010
Total Posts: 1871
05 Aug 2012 01:26 PM
then check it, maybe that is the problem.
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
05 Aug 2012 01:57 PM
ive checked it and fixed it but it... you'll see take the model in my models

function on()
isOn = true
script.Parent.bar.Transparency = 0
script.Parent.Box.Transparency = 1
script.Parent.Box1.Transparency = 1
script.Parent.Box2.Transparency = 1
script.Parent.Box3.Transparency = 1
script.Parent.Box.CanCollide = false
script.Parent.Box1.CanCollide = false
script.Parent.Box2.CanCollide = false
script.Parent.Box3.CanCollide = false
end

function off()
isOn = false
script.Parent.Box.Transparency = 0
script.Parent.Box1.Transparency = 0
script.Parent.Box2.Transparency = 0
script.Parent.Box3.Transparency = 0
script.Parent.bar.Transparency = 0
script.Parent.Box.CanColdide = true
script.Parent.Box1.CanColdide = true
script.Parent.Box2.CanColdide = true
script.Parent.Box3.CanColdide = true
end

function onClicked()

if isOn == true then off() else on() end

end

script.Parent.bar.ClickDetector.MouseClick:connect(onClicked)

on()
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
05 Aug 2012 01:59 PM
its called fridgey for forum
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
05 Aug 2012 02:36 PM
Pending...
Report Abuse
Mathfreak231 is not online. Mathfreak231
Joined: 21 Jun 2010
Total Posts: 5311
05 Aug 2012 02:41 PM
@pie

Maybe don't spam like you did in a couple of your posts...

and we will help you.

~This sig is false~
Report Abuse
cheatmaster18 is not online. cheatmaster18
Joined: 29 Oct 2010
Total Posts: 1871
05 Aug 2012 02:48 PM
here is the fixed version of the script, ther error was that you spelled "CanCollide" as "CanColdide"



local isOn = true

function on()
isOn = true
script.Parent.bar.Transparency = 0
script.Parent.Box.Transparency = 1
script.Parent.Box1.Transparency = 1
script.Parent.Box2.Transparency = 1
script.Parent.Box3.Transparency = 1
script.Parent.Box.CanCollide = false
script.Parent.Box1.CanCollide = false
script.Parent.Box2.CanCollide = false
script.Parent.Box3.CanCollide = false
end

function off()
isOn = false
script.Parent.Box.Transparency = 0
script.Parent.Box1.Transparency = 0
script.Parent.Box2.Transparency = 0
script.Parent.Box3.Transparency = 0
script.Parent.bar.Transparency = 0
script.Parent.Box.CanCollide = true
script.Parent.Box1.CanCollide = true
script.Parent.Box2.CanCollide = true
script.Parent.Box3.CanCollide = true
end

function onClicked()

if isOn == true then off() else on() end

end

script.Parent.bar.ClickDetector.MouseClick:connect(onClicked)

on()
Report Abuse
cheatmaster18 is not online. cheatmaster18
Joined: 29 Oct 2010
Total Posts: 1871
05 Aug 2012 02:50 PM
why did I not see that error at the start then I could helped immediately? But now I found it.
Report Abuse
cheatmaster18 is not online. cheatmaster18
Joined: 29 Oct 2010
Total Posts: 1871
05 Aug 2012 02:51 PM
ops, it wasent there at the start XD
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
05 Aug 2012 07:21 PM
thx :D helped alot :D
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