I really need help knowing how to tween position of a part Please tell me what I’m missing
local tweenService = game:GetService("TweenService")
local Properties = {
Position = Vector3.new(37, 3.5, -7.5)
}
local TweenInfoo =
TweenInfo.new(1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
local tween = tweenService:Create(script.Parent,TweenInfoo,Properties)
wait(5)
tween:Play
Aensvey is right you forgot to add () in tween:Play()
here is the correct code format:
local tweenService = game:GetService("TweenService")
local Properties = {
Position = Vector3.new(37, 3.5, -7.5)
}
local TweenInfoo = TweenInfo.new(1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
local tween = tweenService:Create(script.Parent,TweenInfoo,Properties)
wait(5)
tween:Play()