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

There are some problems when I play my animations in game ?

Asked by 8 years ago
Edited 8 years ago

I have been trying to make animations for my game Parkour Centex and when I play the animations in the game at the end they come back to the place they started from. Here is a place where you could see the animation problem (The keys to play the anim are "f" and "q") : ** https://www.roblox.com/games/448233878/RBLX-Testing-Place**.

Script :

player = game.Players.LocalPlayer
mouse = player:GetMouse()

function KeyD(key)
    key = key:lower()
    hotkey = script.Hotkey
    local char = player.Character
    if key == hotkey.Value then 
        local dance = Instance.new("Animation")
        dance.AnimationId = "http://www.roblox.com/asset/?id=461193468"
        local animloader =char.Humanoid:LoadAnimation(dance)
        animloader:Play()
    end
end

mouse.KeyDown:connect(KeyD)
0
And how should we fix it without the script ? xD Bulvyte 388 — 8y
0
OK sure its a Keydown script. GalaxyPegasusGinka 0 — 8y
0
You could just go to my place and see the animtions there GalaxyPegasusGinka 0 — 8y

Answer this question