#FPS template kill sound

1 messages · Page 1 of 1 (latest)

red wharf
#

Hey, does anyone know how to script and make a kill sound when u kill someone via the blasters in the FPS Roblox template? Thanks!

ancient osprey
#

Im pretty sure, a lot people know how to script that, but as the rules say:

#

An object that emits sound. This object can be placed within a
Class.BasePart or Class.Attachment to emit a sound from a particular
position within a place or world, or it can be attached elsewhere to play the
sound at a constant volume throughout the entire place.

A special object that gives models the functionality of a character.

red wharf
ancient osprey
#

There is a lot different way you can do approch, SetAttribute of the Protjectile (The gun that shoot and if recgonzie if hit a Player) then check if it killed, then fire the sounds to the player, of the name of projectile.

upbeat cave
upbeat cave
#

and to be fair, if you can't figure out how to add a kill sound to a gun on your own with 99.9% of the work already done for you, how will you possibly manage to make anything else for that matter?

red wharf
#

Wat

upbeat cave
# red wharf Wat

in the code, start where your blaster detects mouse1 input, and follow the code all the way to the deal damage part. that's what you're expected to do here.

#

could be uis, could be tool.activated, could be cas. i haven't checked the roblox weapon system lately but that's how it's done. the rest is up to you salute

red wharf
#

waat

gaunt tuskBOT
#

studio** You are now Level 1! **studio

upbeat cave
# red wharf waat

50% of scripting is reading code. 48% is reading documentation. 1% of scripting is actually writing the scripts, and the final 1% is throwing out half of what you just wrote hehe

#

coz sound:play() is one line, that's easy. figuring out where to put it.. that's what most of scripting work actually is fingerguns

#

if you can't do that, you're missing 98% of what it takes to be a scripter

red wharf
#

@ancient osprey

#

I want to hire u