I wrote this simple code but it does not work, Please help thanks
local tween = game:GetService("TweenService") local tweeninfo = TweenInfo.new(10, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1000, true, nil) local tweenProperties = {Position = Vector3.new(-16, 10, -6)} tween:Create(script.Parent, tweeninfo, tweenProperties)
make sure you add tween:Play()
local TweenService = game:GetService("TweenService") local tweeninfo = TweenInfo.new(10, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1000, true, 0) local tweenProperties = {Position = Vector3.new(-16, 10, -6)} local tween = TweenService:Create(script.Parent, tweeninfo, tweenProperties) tween:Play()
Try this
local tween = game:GetService("TweenService") local tweeninfo = TweenInfo.new(10, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1000, true, 0) local tweenProperties = {Position = Vector3.new(-16, 10, -6)} local tween = tween:Create(script.Parent, tweeninfo, tweenProperties) tween:Play()
Possible fixes: Try not setting the delay (last argument) to nil and set it to 0 instead. Make sure the part isn't anchored and make sure that part isn't in the same spot you're tweening it to.