how do i freeze an animation at the end of it/at the last keyframe, local: `local uis = game:GetService("UserInputService")
local rs = game:GetService("ReplicatedStorage")
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local rem = rs:WaitForChild("Remotes"):WaitForChild("testskillrem")
plr.CharacterAdded:Connect(function(newChar)
char = newChar
hum = char:WaitForChild("Humanoid")
end)
local cooldown = false
uis.InputBegan:Connect(function(inp, gpe)
if inp.KeyCode == Enum.KeyCode.Z and not gpe then
if cooldown then return end
cooldown = true
rem:FireServer()
task.wait(6)
cooldown = false
end
end)`