Okay! So I'm trying to make it when I press the F key the player does a shrug taunt and says "That was easy.", and I managed to make the animation and set it up with the sound, except I found out that it only works on the CLIENT side, or at least the sound. the other player can't hear the taunt at all, does anyone know how to change it so the sound can also be heard by the enemy/other players as well? Like, make the source come from the taunting player's head? this is what I'm using
-- 6111265329
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://6111265329"
local player = game:GetService("Players").LocalPlayer
local uis = game:GetService("UserInputService")
local punchKey = Enum.KeyCode.F
local isFinished = true
local sound = script.Punch
local function playAnim()
if isFinished then
isFinished = false
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local track = hum:LoadAnimation(anim)
track:Play()
-- speed up here
sound:Play()
wait(.5)
isFinished = true
end
end
local function onAction(input, gameProcessed)
if input.KeyCode == punchKey then
playAnim()
end
end
uis.InputBegan:Connect(onAction)
