#my animation dont play

1 messages · Page 1 of 1 (latest)

clever talon
#

i created my animations and published it on my friend community and i tried to run the animations on his game which is published on the group too but it doesnt work

clever talon
gaunt ore
#

can us show the script because its defo the code lol

clever talon
#

ok

gaunt ore
#

so you want it to when the player presses E, the rig will play an animaiton for everyone to see? playing animations on the server side will play the animation for everyone, i just want to make sure thats what you want

#

or did you want the animation to only play for the local player, rather than the entire server?

clever talon
brave fiberBOT
#

studio** You are now Level 1! **studio

clever talon
#

i was trying to do when i press E my character run the animation but it was not working so i tried to make the rig run the animation

gaunt ore
#

so you want the player to run when E is pressed?

clever talon
#

yes

gaunt ore
#

okok

#

so is e to run? odd system haha

#

or are you trying to do custom animations w/ a running animation as well?

clever talon
#

a

#

its not a running animation

#

i tried to make when i press E it plays the animation

gaunt ore
#

oh i thought you said a running animation lol

#

so, since animations played on a character is seen by all players, you can actually use a local script inside starter player and others will still see the animation

#

put a local script inside of StarterPlayer > StarterCharacterScripts, inside that script you can add a "Animation" object and paste your ID inside

local animator = script.Parent:FindFirstChildWhichIsA("Humanoid"):FindFirstChildWhichIsA("Animator") --the animator which is inside the rigs' humanoid object
local animation = script:WaitForChild("Animation") -- animation object inside the script

local keycode = Enum.KeyCode.E -- E
local ius = game:GetService("UserInputService")

local playAnimation = animator:LoadAnimation(animation) -- load the animation, and you can call "playAnimation:Play()" to play it
playAnimation.Looped = false

-- i suggest adding a debouce to avoid playing the animation over and over, this is basically a cooldown
local debounce = false

-- e to play animation
ius.InputBegan:Connect(function(input, gameProcessed)
    if input.KeyCode == keycode and debounce == false then
        debounce = true
        playAnimation:Play()
        playAnimation.Ended:Wait() -- wait for the animation to end
        debounce = false -- allow E to be pressed and the animation to play again
    end
end)
clever talon
#

like that?

#

yo

#

i tried it and it worked

gaunt ore
#

yipee

clever talon
#

tysmm

gaunt ore
#

np :D

clever talon
#

yo how can i make my hits do dmg

strange glen