Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Tweening a Models PrimaryPart CFrame but only rotates, how do i only make it move?

Asked by 2 years ago

when i try to tween the cframe of my primaryPart it only rotates it and doesnt move and im wondering on how to move a part with its CFrame Value

Heres the snippet of my code im trying to run:

local TweenService = game:GetService("TweenService")
local Tween_Info   = TweenInfo.new(5, Enum.EasingStyle.Quad)
local Tween        = TweenService:Create(script.Parent.PrimaryPart, Tween_Info, {CFrame = CFrame.new(-79.000, 79.312, 126.875)})
Tween:Play()

so i would be really happy if someone could answer this question

Answer this question