Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I stop an animation on a certain frame?

Asked by 7 years ago

Okay, so my script is

local player = game.Players.LocalPlayer local character = player.Character local hum = player.Character:WaitForChild("Humanoid") local mouse = player:GetMouse() local Debounce = false

local function w(p0,p1,c) local weld = Instance.new('Weld') weld.Part0=p0 weld.Part1=p1 weld.C1 = c weld.Parent = p0 return weld end

mouse.KeyDown:connect (function(key) if key == "e" and Debounce == false then Debounce = true --Things local animation = Instance.new("Animation") animation.AnimationId = "http://www.roblox.com/Asset?ID=27432686" local AnimTrack = hum:LoadAnimation(animation)

    Debounce = false
end

end)

Unfortunately, it's a ROBLOX made script, so it loops. I'm trying to make it stop on a certain frame, I haven't found it yet because I don't know the frame counts yet. Any help is appreciated.

0
You should probably put this inside a code block. May be helpful. Troidit 253 — 7y

Answer this question