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

No response from the output on testing. Easy fix?

Trying to get a print that this pretty simple line of code is functional, no response from the output.

local player = game.Players.LocalPlayer
local Block = script.Parent

Block.ClickDetector.MouseClick:Connect(function()
	print("Success: Click has been detected!") --Testing that the function works.
end)

1 answer

✓ Accepted answer

Try this:

Must be a Normal (Not Local) Script!!!

-- local player = game.Players.LocalPlayer This won't work in a normal script!
local Block = script.Parent

Block.ClickDetector.MouseClick:Connect(function(player) -- the above non-functioning player line is substituted with this  
    print("Success: Click has been detected by player[",player,"]!!") --Testing that the function works.
end)

Hope this helps!

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