Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Script wont print "congrats" when the player clicks a gui and detects a humanoid?

1 answer

hit is not a valid argument of MouseButton1Click. That means hit is nil because the event MouseButton1Click does not return any arguments.

To fix it get rid of hit and do this on line 3:

local h = game.Workspace:FindFirstChild("Humanoid")

1 comment

0

How would I fix it?

This discussion is preserved as it was. New answers, comments, and votes are closed.