Hello guys I have a problem with this script. I want to make this smoothly.
local Part = script.Parent.Parent.Handle script.Parent.Touched:Connect(function(hit) Part.Position = Part.Parent.CardDown.Position wait(2) Part.Position = Part.Parent.CardUp.Position end)
TweenService
local Part = script.Parent.Parent.Handle local TS = game:GetService("TweenService") script.Parent.Touched:Connect(function(hit) TS:Create(Part,TweenInfo.new(.5),{Position = Part.Parent.CardDown.Position}):Play() wait(2) TS:Create(Part,TweenInfo.new(.5),{Position = Part.Parent.CardUp.Position}):Play() end)