Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you accurately "animate tools" ?

I'm trying to make a little animation where you flip a flashlight you're holding when you press T,

local function Tween(instance, Time, goal, Style)
	return game:GetService("TweenService"):Create(instance, TweenInfo.new(Time), goal, (Style or Enum.EasingStyle.Quad)):Play()
end

local toolGoals = {}
toolGoals.GripForward = Vector3.new(0, 0.087, 0.996)
toolGoals.GripPos = Vector3.new(0, -1.23, 0.282)
toolGoals.GripRight = Vector3.new(-1, 0, 0)
toolGoals.GripUp = Vector3.new(0, 0.996, -0.087)
Tween(tool, 5, toolGoals)

I tried to tween the grip data (like seen above)..

My result: https://youtu.be/hxO1ABHyPbo?t=1

I expected this to just go up and turn towards the head like it does at the end, but for some reason it's turning right at first then like halfway through turning around.. Any ideas how to fix this, or a better way to animate my flashlight?

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.