Cloned sounds play globally instead of spatially, even when parented to the character (audible from anywhere)

whats the script used to do that

heres what i created in about 5 minutes sounds like its working too:

local Rep = game:GetService("ReplicatedStorage")
local sound = Rep:WaitForChild("Sound")

local function PlaySound(parent)
	local S = sound:Clone()
	S.Volume = 2
	S.Looped = false
	S.Parent = parent
	S:Play()
	S.Ended:Connect(function()
		S:Destroy()
	end)
end


while true do
	task.wait(1)
	for i,v in Players:GetChildren() do
		if v:IsA("Player") then
			local Char = v.Character
			PlaySound(Char.HumanoidRootPart)
		end
	end
end

Not trying to be rude here, but did you read ANY of the post besides the title?