Here is the script that I am trying to change
function onClicked()
script.Parent.Parent.Door.Transparency = 1
script.Parent.Parent.Door.CanCollide = false
end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Here is the script that I am trying to change
function onClicked()
script.Parent.Parent.Door.Transparency = 1
script.Parent.Parent.Door.CanCollide = false
end script.Parent.ClickDetector.MouseClick:connect(onClicked)
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
I mean, if you just change the "script.Parent.ClickDetector" to the location of the door, it should work fine.
I am not a pro at scripting and don't know how to add the location into the script, (19, 3, -28.5 is the position I got). Could you help me with the script?
as a variable, you would just do "local pos = Vector3.new(19,3,-28.5)" and to set the position you would just do "Part.Position = pos"