Other People Can't See The Animation

this is a hammer tool and i have made about 3 damn posts about it

this time the animation only plays specfically for me. i tried this on an alt, and even had someone test it out, and it won’t work at all. somehow i can see it, like my specfic account

its not client sided it’s a server script

local tool = script.Parent
local handle = tool.Handle
local model = tool.Model
local hitbox = model.Hitbox

local animation = script.Animation

local db = false 
local cooldown = 5

for i, Parts in pairs(model:GetChildren()) do
	if Parts:IsA("BasePart") then
		local weld = Instance.new("WeldConstraint")
		weld.Part0 = Parts
		weld.Part1 = handle
		weld.Parent = Parts
	end
end

tool.Activated:Connect(function()
	if not db then db = true 
		local character = tool.Parent
		local humanoid = character:WaitForChild("Humanoid")
		
		local animationTrack = humanoid:LoadAnimation(animation)
		animationTrack:Play()

		local attack
		attack = hitbox.Touched:Connect(function(hit)
			local humanoid = hit.Parent:FindFirstChild("Humanoid")
				if humanoid then
					attack:Disconnect() 
					humanoid:TakeDamage(50)
					handle.Hit:Play()
				else
					handle.Miss:Play()
				end
			end)
		wait(cooldown)
		attack:Disconnect() 
		db = false 
	end 
end)

tool.Equipped:Connect(function()
	local sound = tool.Handle.Music

	sound:Play()
	sound.Looped = true

	tool.Unequipped:Connect(function()
		sound:Stop()
	end)
end)
1 Like

Have you tested it in-game? I don’t think you can see an animation in studio that you don’t own.

Are you working on this game in a group? What might be happening is you have access to the animations because you made them, but in a team test no-one else can see them because they don’t have access to those animations. If this is the case try re-uploading your animations into the groups inventory and see if it works then.

4 Likes

I have made and uploaded the animation myself

Oh yes I am, maybe that is the case

I’ll try uploading it to the group and then I’ll see if it works

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.