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
 

Why is this script not working?

Previous Thread :: Next Thread 
superben1601 is not online. superben1601
Joined: 09 Oct 2011
Total Posts: 37
02 Aug 2014 01:57 AM
function onClicked()
script.Parent.Parent.D1.Transparancy = 1
script.Parent.Parent.D1.CanColide = false
wait(0.1)
script.Parent.Parent.D2.Transparancy = 1
script.Parent.Parent.D2.CanColide = false
wait(0.1)
script.Parent.Parent.D3.Transparency = 1
script.Parent.Parent.D3.CanColide = false
wait(0.1)
script.Parent.Parent.D4.Transparency = 1
script.Parent.Parent.D4.CanColide = false
wait(0.1)
script.Parent.Parent.D5.Transparency = 1
script.Parent.Parent.D5.CanColide = false
wait(0.1)
script.Parent.Parent.D6.Transparency = 1
script.Parent.Parent.D6.CanColide = false
wait(0.1)
script.Parent.Parent.D7.Transparency = 1
script.Parent.Parent.D7.CanColide = false
wait(0.1)
script.Parent.Parent.D8.Transparency = 1
script.Parent.Parent.D8.CanColide = false
wait(0.1)
script.Parent.Parent.D9.Transparency = 1
script.Parent.Parent.D9.CanColide = false
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
blox6137 is not online. blox6137
Joined: 23 Nov 2008
Total Posts: 1109
02 Aug 2014 02:08 AM
"CanColide"
rly?
its
CanCollide
Report Abuse
ehern11 is not online. ehern11
Joined: 23 Apr 2011
Total Posts: 1541
02 Aug 2014 02:09 AM
try using this;
script.Parent.MouseClick:connect(function()
for i,v in pairs(ModelName:GetChildren()) do
v.Transparency = 1
v.CanCollide = false
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Aug 2014 02:10 AM
local model = script.Parent.Parent;

local clicked = function()
for i = 1, 9 do
local value = model["D" .. i];
value.Transparancy = 1;
value.CanCollide = false;
wait(0.1);
end
end;

script.Parent.ClickDetector.MouseClick:connect(clicked);
Report Abuse
blox6137 is not online. blox6137
Joined: 23 Nov 2008
Total Posts: 1109
02 Aug 2014 02:14 AM
I'm pretty sure someone who doesn't know how to script something doesn't want a script they don't know how to script.
Guys, please revise people's scripts, don't just give them one they probably wont understand; if you do, at least EXPLAIN IT TO THEM.
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