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: Transparency script

Previous Thread :: Next Thread 
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 04:50 PM
[ Content Deleted ]
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 04:57 PM
[ Content Deleted ]
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 05:07 PM
[ Content Deleted ]
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 05:12 PM
[ Content Deleted ]
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 05:14 PM
[ Content Deleted ]
Report Abuse
Legoman654 is not online. Legoman654
Joined: 05 Jun 2008
Total Posts: 534
08 Feb 2013 05:21 PM
Explain what you need in a bit more detail and I'll work something up for you.
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 05:31 PM
[ Content Deleted ]
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
08 Feb 2013 05:35 PM
RoofNames = {"Roof"; "Chimney"; "Blarg"} -- Add more names, these are the "roof" parts. Just add there name to the list.

script.Parent.ClickDetector.MouseClick:connect(function()
for i,v in pairs(RoofNames) do
if Game.Workspace[v].Transparency == true then
Game.Workspace[v].Transparency = false
else
Game.Workspace[v].Transparency = true
end
end
end)

~~Advanced Scripter
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
08 Feb 2013 05:36 PM
their*

~~Advanced Scripter
Report Abuse
Legoman654 is not online. Legoman654
Joined: 05 Jun 2008
Total Posts: 534
08 Feb 2013 05:42 PM
Beat me to it. This should work for you OP. Thanks for helping him out, cody!
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 05:42 PM
[ Content Deleted ]
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
08 Feb 2013 05:44 PM
script.Parent.ClickDetector.MouseClick:connect(function()
for i = 1, 19 do
if Game.Workspace["Roof"..i].Transparency == true then
Game.Workspace["Roof"..i].Transparency = false
else
Game.Workspace["Roof"..i].Transparency = true
end
end
end)

~~Advanced Scripter
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 05:46 PM
[ Content Deleted ]
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
08 Feb 2013 05:47 PM
Are you sure there is a ClickDetector inside the script's parent?

~~Advanced Scripter
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 05:48 PM
[ Content Deleted ]
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
08 Feb 2013 05:49 PM
Are the bricks inside of Workspace, or a model?
If they are in a model, please clarify where the model is:

Game.Workspace.Car.Roof.Roof(10-19)

~~Advanced Scripter
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 05:51 PM
[ Content Deleted ]
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
08 Feb 2013 05:58 PM
Put this script inside the roof, where all the roof parts are.

Clicker = "Roofblahblah" -- Change this to the roof you want to be clicked

script.Parent[Clicker].ClickDetector.MouseClick:connect(function()
for i = 1, 19 do
if script.Parent["Roof"..i].Transparency == true then
script.Parent["Roof"..i].Transparency = false
else
script.Parent["Roof"..i].Transparency = true
end
end
end)

~~Advanced Scripter
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 06:03 PM
[ Content Deleted ]
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 06:05 PM
[ Content Deleted ]
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
08 Feb 2013 06:11 PM
Transparency is not a boolean. . .

¤ ¤ † K M <( •д• )> X D † ¤ ¤
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
08 Feb 2013 06:14 PM
Wow, I can't believe I missed that. .-.

Clicker = "Roofblahblah" -- Change this to the roof you want to be clicked
script.Parent[Clicker].ClickDetector.MouseClick:connect(function()
for i = 1, 19 do
if script.Parent["Roof"..i].Transparency == 1 and i ~= 2 then
script.Parent["Roof"..i].Transparency = 0
elseif script.Parent["Roof"..i].Transparency == 0 and i ~= 2 then
script.Parent["Roof"..i].Transparency = 1
else
script.Parent["Roof"..i].Transparency = .5 -- Not sure what you're wanting.
end
end
end)


~~Advanced Scripter
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 06:25 PM
[ Content Deleted ]
Report Abuse
RTCMaaznager is not online. RTCMaaznager
Joined: 16 Oct 2011
Total Posts: 3809
08 Feb 2013 06:26 PM
[ Content Deleted ]
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