#Scripting or animation not working when I play test

1 messages · Page 1 of 1 (latest)

indigo lake
#

I have a punch animation and the script for it but whenever I play the game and left click it just displays the punch and server text in the output menu it doesn’t actually play the animation. Yes I’m on R6 and yes I copied the animation id. I have screenshots and videos of what happens.

hallow ether
#

check ur animation priority

foggy silo
#

😉

indigo lake
indigo lake
indigo lake
hallow ether
#

uhh maybe try loading from the animator instead of humanoid

indigo lake
#

Cuz that didn’t work

hallow ether
#

i think its under humanoid

indigo lake
#

What does that mean

hallow ether
#

its parented to humanoid i think

grand nacelle
hallow ether
#

u can check by playing the game cuz i forgot

indigo lake
#

What do I look for when I play the game

grand nacelle
#

you load animations from that instead of the humanoid

indigo lake
#

That didn’t change anything either 😭

grim spokeBOT
#

studio** You are now Level 2! **studio

foggy silo
#

still cant find animation priority?

indigo lake
#

Still doesn’t work tho

foggy silo
#

have you reuploaded it?

#

with the new priority

indigo lake
#

Yes it was always set to action

grand nacelle
#

also try doing

foggy silo
#

are you using animation id?

grand nacelle
#

M1.Priority = Enum.AnimationPriority.Action

indigo lake
indigo lake
foggy silo
#

and you got the new id for the new uploaded one?

indigo lake
#

Yes

foggy silo
#

not the first one

indigo lake
#

Wait no

#

Lemme try that

foggy silo
#

reupload it and use the new id

#

dont stay with the older one

#

because its part of it

indigo lake
#

Still just says punch and server in the output

grand nacelle
#

weird

autumn ingot
#

That is your animation?

grand nacelle
#

are you sure it's r6

autumn ingot
#

Or from a friend?

indigo lake
#

Yes my animation

#

Yes r6

grand nacelle
#

like your avatar is r6

indigo lake
#

Yes

#

And the dummy

autumn ingot
#

Send script

indigo lake
#

Sorry for bad quality

foggy silo
#

im on studio

#

send script as text

#

ill copy and paste to test

indigo lake
#

I’ll have to download discord on pc gimme a sec

grand nacelle
#
local UIS = game:GetService("UserInputService")

local plr = game.Players.LocalPlayer
local character = plr.Character or plr.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local M1 = humanoid:LoadAnimation(script.Animations.M1)
UIS.InputEnded:Connect(function(I, E)
if E then return end
if I.UserInputType == Enum.UserInputType.MouseButton1 then
print("punch")
game.ReplicatedStorage.MainEvent:FireServer()|
M1:Play()
end
end)
foggy silo
#

no you dont have to do it

#

ill copy

foggy silo
#

also sorry for my laziness lmao

indigo lake
#

Did it work 👀

grim spokeBOT
#

studio** You are now Level 2! **studio

foggy silo
#

ill copy it

#

give me a sec

grand nacelle
grim spokeBOT
#

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

autumn ingot
grand nacelle
foggy silo
#

@indigo lake can i have the id to test it on ur anim

#

or shall i get new anim

indigo lake
#

I’ll give you anim its basic as hell

autumn ingot
#

Put animation :Play() before FireServer() @indigo lake

indigo lake
autumn ingot
#

😭

foggy silo
#

im not gonna use it, im on template im gonna delete it

indigo lake
#

Id: 127256419663298

indigo lake
autumn ingot
indigo lake
grand nacelle
#

script works so it's an animation problem

indigo lake
#

I talked to an animation guy and he said it was a script problem 😭

#

That’s why I’m here in the first place 😭

autumn ingot
#

Strange, is working on my studio. Try my script:

local UIS = game:GetService("UserInputService")

local plr = game.Players.LocalPlayer
local character = plr.Character or plr.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local animator = humanoid:WaitForChild("Animator")
local M1 = animator:LoadAnimation(script.Animations.M1)

M1.Priority = Enum.AnimationPriority.Action

UIS.InputBegan:Connect(function(I, E)
    if E then return end
    
    if I.UserInputType == Enum.UserInputType.MouseButton1 then
        print("punch")
        
        M1:Play()
        
        game.ReplicatedStorage.MainEvent:FireServer()
    end
end)
autumn ingot
foggy silo
#

i got no permission

#

i think its working

#

try this script

#
local uis = game:GetService("UserInputService")

local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")

local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://127256419663298"

uis.InputEnded:Connect(function(I, E)
    if E then
        return
    end
    if I.UserInputType == Enum.UserInputType.MouseButton1 then
        local loader = hum:LoadAnimation(anim)
        loader:Play()
    end
end)
#

make new local script

#

disable that one

indigo lake
#

okay im on my pc now so i can copy paste scripts

grim spokeBOT
#

studio** You are now Level 3! **studio

indigo lake
foggy silo
#

the script i sent should work

#

i test another animation and worked

#

if there any problem then its on your animation

grand nacelle
indigo lake
autumn ingot
#

Oh

#

Yeah

#

That is your animation

indigo lake
#

well whats wrong with it i followed the tutorial

#

how could an animation not work

foggy silo
#

i think the id is wrong

#

how you copy it?

#

when i published new id, the id is shorter than yours

#

you prob copying the wrong one

#

ill give u the steps of how to get the id

indigo lake
#

i went to the website and clicked copy id

foggy silo
#
  1. click publish to roblox
  2. click save
  3. click the small box right side of the number
foggy silo
#

the popup

#

when u saved an animation

indigo lake
#

i did that and it didnt change anything

#

rbxassetid://110340755003388

#

this is the new id

foggy silo
#

welp i got no idea

indigo lake
#

the third publish

#

aww man

#

ig ill ask someone else

#

thanks for helping tho

foggy silo
#

np

#

good luck with it

indigo lake
# foggy silo good luck with it

i dont think its an animation issue because when i put the correct id to your script nothing popped up in the output window it was just blank

serene shuttle
grim spokeBOT
#

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

serene shuttle
#

im like 80% sure thats the problem

indigo lake
#

okay but it says save and restart i dont wann restart lol

#

i already put like four hours into this lol

grim spokeBOT
#

studio** You are now Level 4! **studio

indigo lake
#

will it get rid of all my work

#

@serene shuttle

rotund notch
#

no

grim spokeBOT
#

studio** You are now Level 21! **studio

rotund notch
#

it wont

indigo lake
serene shuttle
#

yeah i had the same problem a while back