Im trying to make a elevator but i only want it to move on the player client when they touch the elevator part.
the current script
local tweenGet = game:GetService("TweenService")
local anim ={
Position = Vector3.new(3409.593,45.931,-413.088)
}
local TweenStyle = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false,
0.5
)
local tween = tweenGet:Create(script.Parent,TweenStyle,anim)
local db = false
script.Parent.Touched:Connect(function()
if not db then
db = true
wait()
tween:Play()
end
end)
