This is my code, I want to obtain the player that clicked the textbutton, but its not working. Help?
function Dialog(player)
print("Ere")
if player ~= nil then
CreateDialog("Are You ok?",player)
CreateDialog("Oh god, you're bleeding",player)
CreateDialog("What was that?",player)
end
end
script.Parent.TextButton.MouseButton1Click:connect(Dialog)

4 comments
Please expand this more I do not understand what you trying to say.
I want to obtain the player who clicked on the textbutton, by using an arguement (player) but it isn't working.
TextButton's do not return the player as an argument.
Is there a way to obtain the player?