Right now I have one proximity prompt “ProximityP” that raises the boat lift until “Bumper” is touched. Instead of having “ProximityP2” lower it back down with a seperate key bind how could i make “ProximityP” raise it before it hits “Bumper” and once they keybind is activated again bring it back down? thanks -
local ProxmityP2 = script.Parent.Parent.Parent.Parent.Model1.Prox.ProximityPrompt2
local Part1 = script.Parent.Parent.Parent.Model2.Bumper
ProxmityP.Triggered:Connect(function(player)
script.Parent.Parent.Motor.LinearVelocity.VectorVelocity = Vector3.new(0,5,0)
Part1.Touched:Connect(function(hit)
script.Parent.Parent.Motor.LinearVelocity.VectorVelocity = Vector3.new(0,0,0)
end)
end)
ProxmityP2.Triggered:Connect(function(player)
script.Parent.Parent.Motor.LinearVelocity.VectorVelocity = Vector3.new(0,-5,0)
Part1.Touched:Connect(function(hit)
script.Parent.Parent.Motor.LinearVelocity.VectorVelocity = Vector3.new(0,0,0)
end)
end)