So my sound isnt serversided in my game, I want other people to hear the sound when using the tool but it doesnt work...
local swinganimationid = 9671188351
repeat wait() until game.Players.LocalPlayer.Character
local lp = game.Players.LocalPlayer
local sp = script.Parent
local debounce = true
local sound = script.Parent.Sound1
local sound2 = script.Parent.Sound2
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://" .. swinganimationid
local swingtrack = lp.Character.Humanoid:LoadAnimation(anim)
sp.Activated:connect(function()
if debounce == true then
debounce = false
swingtrack:Play()
sound:Play()
sound2:Play()
wait(swingtrack.Length)
sound2:Stop()
sound:Stop()
debounce = true
end
end)

3 comments
Is the parent of the script the tool or the handle?
The script is in the tool not the handle :{
looks like someone already answered ur question but use task.wait() instead of wait() btw