Can You please help me?
script.Parent.ClickDetector(function(Clicked)
local Player = game.Players.LocalPlayer
if Player.Clicked == true then
print("pressed")
end
end)
Can You please help me?
script.Parent.ClickDetector(function(Clicked)
local Player = game.Players.LocalPlayer
if Player.Clicked == true then
print("pressed")
end
end)
script.Parent.ClickDetector.MouseClick:Connect(function(whom)
local Player = game.Players.LocalPlayer
if whom.Name == game.Players.LocalPlayer.Name then
print("pressed")
end
end)
should work now!
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Clicked is not a value in a player lmao, just remove the whole player part and print it.