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 » Game Design
Home Search
 

Re: Broken script!

Previous Thread :: Next Thread 
oldsoman77 is online. oldsoman77
Joined: 13 Jan 2013
Total Posts: 228
10 Nov 2017 05:09 PM
I need help with this simple script not working for some reason:


script.Parent.Touched:Connect(function(hit)
if hit.Name == "Keycard" then
script.Parent.CanCollide = false
script.Parent.Transparency = 1
wait(2)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
end
end)
Report Abuse
Kannivalismos is not online. Kannivalismos
Joined: 18 Feb 2012
Total Posts: 3439
10 Nov 2017 05:10 PM
explain "not working"
Report Abuse
royaltoe is not online. royaltoe
Joined: 14 Sep 2011
Total Posts: 36834
10 Nov 2017 05:13 PM
seems like it would work for me. what does the keycard look like? is it a model? tool?
Report Abuse
Lazar0o is not online. Lazar0o
Joined: 08 Dec 2016
Total Posts: 54
10 Nov 2017 05:19 PM
i suck at scripting but try putting instead of script.parent put game.workspace.blablabla and see if that works
Report Abuse
oldsoman77 is online. oldsoman77
Joined: 13 Jan 2013
Total Posts: 228
10 Nov 2017 05:22 PM
Yes, its a tool.
Report Abuse
oldsoman77 is online. oldsoman77
Joined: 13 Jan 2013
Total Posts: 228
10 Nov 2017 05:26 PM
The door isn't opening, like its supposed to.
Report Abuse
dexperaux is not online. dexperaux
Joined: 18 Dec 2013
Total Posts: 153
10 Nov 2017 05:28 PM
I think its "connect" not "Connect"
Report Abuse
Lazar0o is not online. Lazar0o
Joined: 08 Dec 2016
Total Posts: 54
10 Nov 2017 05:38 PM
get a free model of a key and a door , if it works go look at the script and compare it to yours , u may accidentally learn something :)
Report Abuse
oldsoman77 is online. oldsoman77
Joined: 13 Jan 2013
Total Posts: 228
11 Nov 2017 09:51 AM
Thanks guys!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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