There's quite a few things wrong with this, so I'll list them as bullet points.
*"Instance" has been misspelled as "Instace"
*torso hasn't been defined, at least in the code you've given
*"Player" is not a valid property of game, but Players is
*Even if you were actually referencing a player correctly, "Chat" is not a valid method
*A sounds volume can only be set to a maximum of 10
*Play is a method of Sound, it's not meant to be called as a function
Correcting as many issues as I could, the code looks like this
local msg = "bruh"
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local sound = nil
player.CharacterAdded:Connect(function(character)
wait()
sound = Instance.new("Sound", character:FindFirstChild("Torso") or character.UpperTorso)
end)
player.Chatted:Connect(function(msg)
sound.SoundId = "rbxassetid://3154962208"
sound:Play()
end)
1 comment
thx lol