I have some guns in my game that I converted to FE. They now kill players. The only problem is the sound...I can hear my gun in game but not other players. The sound only fires locally and not for the entire server. I know this is probably a simple change, but I am a complete beginner too scripting. If you view this and are able to help, thank you. Below are two scripts that I found that relate to the weapons fire sound.
function OnEquipped(mouse) Handle.EquipSound:Play() RecoilAnim = WaitForChild(Tool, 'Recoil') FireSound = WaitForChild(Handle, 'FireSound'
function OnFire() if IsShooting then return end if MyHumanoid and MyHumanoid.Health > 0 then if RecoilTrack and AmmoInClip > 0 then RecoilTrack:Play() end IsShooting = true while LeftButtonDown and AmmoInClip > 0 and not Reloading do if Spread and not DecreasedAimLastShot then Spread = math.min(MaxSpread, Spread + AimInaccuracyStepAmount) UpdateCrosshair(Spread) end DecreasedAimLastShot = not DecreasedAimLastShot if Handle:FindFirstChild('FireSound') then Handle.FireSound:Play() script.Parent.Flash.Light.Enabled = true Handle.Flash.Enabled = true end
I'm also fairly new to scripting, only started about a month ago, but the only way i could see you doing this is by using a remote event and playing the sound using a server script, transferring the location of the gunshot using said remote event, I'm sure there are better ways to do it, but that's the only way ik how to do it