Hi everybody!
-
What do you want to achieve? I want to make a retro style animation for a reloading a gun. Please note, this animation is meant to be very sloppy and choppy on purpose, so PLEASE do not tell me to use something better like the Animation Editor, as it smooths it out, which isn’t what I want.
-
What is the issue? I literally cannot figure out how to get it to do so.
-
What solutions have you tried so far? I’ve tried using :ToObjectSpace and :ToWorldSpace and have been surfing the devforum on how to do so.
My frames and variables for this are here
local ReloadNumFrames = 13
local ReloadFramesPos = {
Vector3.new(-1.13, 9.115, 0.58),
Vector3.new(-1.811, 9.751, 1.289),
Vector3.new(-1.864, 9.089, 1.423),
Vector3.new(-1.95, 8.804, 1.429),
Vector3.new(-2.03, 8.541, 1.435),
Vector3.new(-2.517, 9.222, 1.822),
Vector3.new(-2.499, 10.233, 1.664),
Vector3.new(-2.164, 10.128, 2.466),
Vector3.new(-2.46, 10.221, 1.757),
Vector3.new(-2.492, 9.668, 1.656),
Vector3.new(-1.853, 9.778, 0.853),
Vector3.new(-1.441, 9.108, 0.146),
Vector3.new(-1.13, 9.115, 0.58)
}
local ReloadFramesRot = {
Vector3.new(25.122, -33.85, -0),
Vector3.new(5.594, -48.822, -6.648),
Vector3.new(4.135, -60.469, -7.639),
Vector3.new(-14.968, -57.865, -7.888),
Vector3.new(-37.161, -54.096, -9.576),
Vector3.new(-4.812, -59.27, -7.646),
Vector3.new(-5.753, -66.637, -6.967),
Vector3.new(-5.753, -66.637, -6.967),
Vector3.new(-5.753, -66.637, -6.967),
Vector3.new(6.085, -38.498, -8.935),
Vector3.new(6.085, -38.498, -8.935),
Vector3.new(26.694, -42.051, -9.954),
Vector3.new(25.122, -33.85, -0)
}
local ReloadWaitTimesBetweenFrames = {
.1,
.1,
.2,
.1,
.4,
.2,
.1,
.1,
.1,
.05,
.05,
.1,
.1
}
My function for this is here
UIS.InputBegan:Connect(function(input)
if input.KeyCode.Value == 114 then
for i=1,ReloadNumFrames do
script.Parent.Leftarm.Position = ReloadFramesPos[i]
script.Parent.Leftarm.Rotation = ReloadFramesRot[i]
wait(ReloadWaitTimesBetweenFrames[i])
end
end
end)
Thank you so much!