this is script
local Goo = script.Parent
local team = BrickColor.new("Dark stone grey")
local infect = game.ReplicatedStorage.GetInfect
local waitd = false
Goo.Touched:Connect(function(hit)
if not waitd then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent);
if plr then
plr.TeamColor = team
end
infect:FireClient(plr)
waitd = true
end
end)
this is a local script
local infect = game.ReplicatedStorage.GetInfect
local sound = script.Sound
infect.OnClientEvent:Connect(function()
sound.Playing = true
end)

1 comment
on which script and line was the error on?