I don't know what to do anymore. I had this issue 8 days ago and it's broken again, I didn't even change anything. This issue is draining me mentally since I can't find a way to fix this and it's been weeks. I'll glady give permissions to anyone who wants to try and help with the issue in studio. This is the local script inside the tool, that plays the animation
#Please help 😭 tool animation plays only for the client
1 messages · Page 1 of 1 (latest)
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local Tool = script.Parent
local Grip = Tool.Connectors.Grip
local IdleAnim = script:WaitForChild("Idle")
local IdleTrack = animator:LoadAnimation(IdleAnim)
local Ui = game.ReplicatedStorage.ToolsUis:WaitForChild("PhoneGui")
Tool.Equipped:Connect(function()
local ScreenGui = Ui:Clone()
ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
IdleTrack:Play()
Grip.Part0 = Tool.Parent:WaitForChild("Right Arm")
end)
Tool.Unequipped:Connect(function()
IdleTrack:Stop()
Grip.Part0 = nil
end)
are u using a local script?
bcz if so i recommend putting all the animations part in a regular one cuz the local script just appears for the client
** You are now Level 9! **
who are u
yeah
I tried that a while ago, and I ended up getting an error
lemmie send it, wait a sec
this is the error
Players.boyngt6355.Backpack.Phone.Script:5: attempt to index nil with 'Character'
and this is the line it sends me to
local character = player.Character or player.CharacterAdded:Wait()
nah u are supposed to use a local script
** You are now Level 2! **
network ownership should replicate animations
if the equipped event is working and the animation is getting loaded
@quasi star the problem is probably the animation being r6/r15 and the rig you're loading it on being the opposite
check that
do it on server
if you want it to be smoother
then you use fireallcleint and play animation there
that way it will replicate animation in every client
and everyone will see
but most likely you will need to use animation event on the server so i jsut do it on the server
atleast for abilities
where do you learn this is the best method
if you play directly from client it will always be smoother than from server
and if you do it on server you don't need to fire to all clients cuz it's auto replicated ✌️😭
bro 💔
who does that 💀
dawg nobody plays animations on server side
that's just bad
even if you need the signal from server then you would still play on client side
?
you cant access the animation in the server mate
what
are you like
1 month experienced?
chillax bro
didn't you JUST say playing animations on server is better?
holy ragebait
that's impossible since, I made the anim on an r6 rig and the game has forced r6
i dont think you understand
🥀
nvm
you'll learn when you get better
🆙
if you still have a problem lmk
well, I still haven't figured out the issue, do you have any ideas on how this might be fixed?
This situation has been a total mess
if you'd like I can give you permissions, so you can check it out in studio
no i know the problem
i had it before
here's a forum thread that explains it
Developer Forum | Roblox
The issue might be that you are using the humanoid to load the animation. On the server, this is usually fine, but on a local script you have to be careful. When you call :LoadAnimation() on a humanoid, it will check to see if it has an Animator object as a child. If it doesn’t, it will create one for itself. This is key because the server is...
i personally just load all anims when the player joins the game and put them all in the list (with a for loop for example)
and i index them by name so when i want to play an anim i do something like AnimList[AnimName]:Play()
and AnimList[AnimName] = Anim:LoadAnimation()
I'm very beginner level scripting so I might be wrong, but from what I understand, I gotta make a module that loads animations when the player joins, and when I want to use an animation from inside the module, I gotta use the command you said?
also sorry for taking so long to respond, I've been very busy lately