Hello all!
My door script works when a player touches it, just it happens to move really slow to its correct coordinates and then moves back slowly.
Is there a way I can make it move faster.
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
if debounce == false then
debounce = true
for x = 1, 41 do
wait(.1)
script.Parent.CFrame = script.Parent.CFrame + Vector3.new(0,0,.1)
end
wait(3)
for x = 1, 41 do
wait(.1)
script.Parent.CFrame = script.Parent.CFrame + Vector3.new(0,0,-.1)
end
debounce = false
end
end
end)