|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 05 Aug 2012 12:51 PM |
| The model is in my models look for it :D |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 05 Aug 2012 01:26 PM |
| then check it, maybe that is the problem. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 05 Aug 2012 01:59 PM |
| its called fridgey for forum |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 05 Aug 2012 02:51 PM |
| ops, it wasent there at the start XD |
|
|
| Report Abuse |
|
|
| |
|