TruestBlu
(TruestBlu)
1
When I try and play a sound, it cuts off at the start and I have no idea why.
Here’s my code:
game.ReplicatedStorage.ServerSound.OnServerEvent:Connect(function(plr,snd)
local sndclone = snd:Clone()
sndclone.Parent = plr.Character.HumanoidRootPart
sndclone:Play()
game.Debris:AddItem(sndclone,10)
end)
Why does it cut off at the start?
TruestBlu
(TruestBlu)
2
Nevermind, I fixed it.
game.ReplicatedStorage.ServerSound.OnServerEvent:Connect(function(plr,snd)
local sounde = Instance.new("Sound",plr.Character.HumanoidRootPart)
sounde.TimePosition = 0
sounde.SoundId = snd.SoundId
sounde.Volume = snd.Volume
sounde.PlaybackSpeed = snd.PlaybackSpeed
sounde:Play()
game.Debris:AddItem(sounde,10)
end)