Hello, I am trying to play a animation while using ServerScript.I tried a few things but they are not working and I don’t what I am doing wrong or well, I don’t know what I am doing true
like I don’t know if I put animation to right place or is script true or if they are both true then should I add something else?
by the way I am trying achive all players can see each other’s animations
and I am not sure if using OnServerEvent is a wise choice? I just thought if player is the one who will trigger it so I should put it there??? Idk
this is the script I wrote so far
local players = game:GetService("Players")
local toolConfig = require(game.ServerStorage:WaitForChild("MontalayaciAhmetUSta"):WaitForChild("ToolConfig"))
local remotes = replicatedStorage:FindFirstChild("Remotes")
local anim = script:FindFirstChild("Animation")
remotes.ToolActivatedRemote.OnServerEvent:Connect(function(player)
if not player.Character then return end
local animtrack = player.Character:WaitForChild("Humanoid"):LoadAnimation(anim)
animtrack:Play()
end)
and here is the screenShot of FireServer()
I am open to every opinion