#why when i make an anim on r6 and try to load it on a player's animator it doesnt load but r15 does
1 messages · Page 1 of 1 (latest)
Cuz the animation must be the same as the rig type you animated
it is
You animated in r6 or r15?
i meant that when i make an r6 animation for r6 player it doesnt load but if r15 it loads
no i want to make an animation r6 for a r6 player
You must load in a r6 rig
no i load it on r6 player and it doesnt
Doesn't what
load the animation
Are there any errors in the output? And send the script
theres no errors: ```local UIS = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local animator = Humanoid:WaitForChild("Animator")
local anim = Instance.new("Animation")
anim.Parent = script
anim.AnimationId = "rbxassetid://78278363343392"
UIS.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.UserInputType == Enum.UserInputType.MouseButton1 or Enum.UserInputType.Touch then
local track = animator:LoadAnimation(anim)
track:Play()
end
end)```
I see what the problem is
You need to do ```lua
if not gameProcessed then return end
Because if you do ```lua
if gameProcessed then return end
It will always end your function unless you click on the chat or on gui.
i changed it and checked it works but it wont even display print in output
thats strange
it prints the text only before the if not gameProcessed then return end
Nvm your right but for some reason it works in my code when i use if not gameProcessed even tho it shouldn't
well ignore that
but the animation still won't load, when i make r6 animations and try to load on player's animator it won't do it even though the player is on r6.
You set your game to r6 right?
In the animation settings
yea
k
Yeah it doesn't have to do anything with your script for sure
Could you record and show how your animation looks like in the animation editor
how will that help any animation i make do that
I just wanna see
Because for me it worked perfectly fine
so there is only the option that something is wrong with your animation itself
what is the priority for that animation
it is action
I genuinely have no ideas left. Other than maybe testing this on a new baseplate and seeing if it doesn't work there aswell (You'll have to create the animation there again aswell)
It's genuinely just a skill issue
Wait is this like a template? Cuz I'm pretty sure I've seen this exact same bad script somewhere else
this feels like a normal self written script
and it works fine
i tested it on a blank baseplate
even tho it is a little weird to reload the animation over and over again
it works but not for him
I think this because why do u define the track inside the function, u should do it outside at the top
Ye exactly
well it still worked for me when I loaded the track inside the function. But ig its worth a try @gilded rampart
I mean then I'm 99% confident that he didn't set the rig type or bad id
Yeah but he says that the rig type is r6 (like the animation) and well i didn't ask him if the id was the right one but i expect that much
i tested and it doesnt work ```local UIS = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local animator = Humanoid:WaitForChild("Animator")
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://72374727996799"
local track = animator:LoadAnimation(anim)
UIS.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
track:Play()
end
end)```
** You are now Level 6! **
this is a different id now. Is this on a new blank baseplate?
But did he set it in avatar settings?
nope i changed the anim
i see
Or that isn't needed
He said he changed it there
right @gilded rampart?
yea
Well I'm not sure
Could u show us ur avatar settings?
(not rig)
and i mean it would be noticable if you spawn in with a r15 character
click on the three dots and set it to r6 only. But for some reason your avatar settings are different from mine
omg you saved my life, Doctor
it works fine now
No problem
No problem 😁