How do I tween a Parts Cframe back to a previous one.
Like some sword scripts, will perform multiple actions then tween it's cframe to the original cframe/pose of the part or object.
How do I tween a Parts Cframe back to a previous one.
Like some sword scripts, will perform multiple actions then tween it's cframe to the original cframe/pose of the part or object.
Well, usually in the beginning of the script, before the function or event occurs, they'd set a variable that defines the original Position. So:
local Original = game.Workspace.Part.Position
-- Rest of code here.
game.Workspace.Part.Position = Original
I don't think you can. If you want to animate, you gotta use Roblox's plugin or use a script and change its CFrame iteratively. It's tedious but that was how most Roblox guns were animated.
This discussion is preserved as it was. New answers, comments, and votes are closed.