So basically, i have a script where u press a key and play a animation, expect the animation slides the character back to its OG position instead of the character going to the position that the animation ended in. Any help fellow peeps?
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
function keyD(key)
local key = key:lower()
local hotkey = script.Hotkey.Value
if key == hotkey then
local dance = Instance.new("Animation")
--only change this
dance.AnimationId = "rbxassetid://02937579947"
--nothing above or below
local animloader = player.Character.Humanoid:LoadAnimation(dance)
animloader:Play()
end
end
mouse.KeyDown:connect(keyD)
--UHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH bonlesss burger

4 comments
Show us your script and we'll help you out.
Animations will not change the position of your character, you'll have to move it as well by editing it's CFrame some way, or tween it while animation (stationary) like most things work.
Edit:- code block
use scratch instead