I'm trying to make a script where when you touch a characters hitbox, a certain chat will come up, but the output window says "Argument 1 missing or nil".
Code:
local debounce = false
game.Workspace.RowanAsleep.RowanAsleepHitbox.Touched:Connect(function(hit)
if not debounce then
debounce = true
if game.Players:GetPlayerFromCharacter(hit.Parent)then
game.ReplicatedStorage.RowanTalking.RowanSleeping:FireClient()
end
wait(2)
debounce = false
end
end)