bool = false
open = script.Parent.Parent.Open2
position1 = -119.18, 4.5, 235.79
position2 = -119.18, 5.9, 233.39
position3 = -119.18, 4.5, 235.59
position4 = -119.18, 4.5, 237.19
function opened(hit)
if bool == false then
if script.Parent:FindFirstChild('Humanoid') then
if script.Parent.Parent then
wait()
open.Position = position1
wait(1)
open.Position = position2
wait(1)
open.Position = position3
wait(1)
open.Position = position4
bool = true
end
end
end
end
script.Parent.Parent.Open2.Touched:connect(opened)
So when the player step on the part I want the model of the part to open.
