name = "Football"
debounce = false
msg = Instance.new("Hint")
msg.Text = "Scored by"..game.Workspace.Ball_Owner.Value
function onTouched(hit)
if (debounce==false) and (hit.Parent.Name==name) then
debounce = true
msg.Parent = game.Workspace
wait(5)
msg.Parent = nil
debounce = false
end
end
script.Parent.Touched:connect(onTouched)
COMMUNITY QUESTION
How can I make this work when the player is holding the ball instead of the ball touching?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
