of     1   

Linexes
#228427544Monday, December 04, 2017 4:00 PM GMT

So, I am making a game where you start off in a room and you're supposed to find something to picklock the door. You find a needle (because the room is more of a mental hospital / asylum room), and you click it and it clones to your back pack (I've gotten that done!). I am trying to figure out how to make it when the needle touches the part (the door), it'll go CanCollide = false and set Transparency to 1 --SCRIPT local door = game.Workspace.doorpart function onTouch(hit) if hit.Parent == Needle then door.CanCollide = false door.Transparency =1 wait(1) door.CanCollide = true door.Transparency =0 end end --end I am using a normal script for this (just the FYI part) --Thanks if you can help :D
Camper0008
#228427711Monday, December 04, 2017 4:07 PM GMT

if hit.Parent.Name == "Needle" then ╴ “I seem to get mentioned alot in videogames.. i wonder why..”
Linexes
#228427719Monday, December 04, 2017 4:08 PM GMT

Ok. I will try that :p
Linexes
#228427800Monday, December 04, 2017 4:11 PM GMT

I am looking over it, as it is not working, but I do have the script in Workspace. That could always be the problem. If it is just tell me, because I am a nub at scripting
Camper0008
#228427814Monday, December 04, 2017 4:11 PM GMT

that isnt the problem, no ╴ “I seem to get mentioned alot in videogames.. i wonder why..”
Linexes
#228427924Monday, December 04, 2017 4:15 PM GMT

Not working, "local door = game.Workspace.doorpart function onTouch(hit) if hit.Parent.Name == "Needle" then door.CanCollide = false door.Transparency =1 wait(1) door.CanCollide = true door.Transparency =0 end end" -- And the tool is in StarterPack it's named "Needle"
Linexes
#228427949Monday, December 04, 2017 4:16 PM GMT

Like I said I am not the best at scripting.. I try to do good, but I am not always the best.

    of     1