when ever i try to get the player from clicking a button it's not giving the player.
script.Parent.MouseButton1Click:Connect(function(Player)
print(Player.Name)
end)
This is whats goes in the Output
21:59:51.442 - Players.Dusk_Toxic.PlayerGui.LevelBar.TextButton.LocalScript:2: attempt to index local 'Player' (a nil value)
21:59:51.443 - Stack Begin
21:59:51.444 - Script 'Players.Dusk_Toxic.PlayerGui.LevelBar.TextButton.LocalScript', Line 2
21:59:51.444 - Stack End

4 comments
the player isn't passed through the MouseButton1Click signal
You're probably doing this on a local script so just index the local player in the player's service
The thing is i want to be able to get it to send a Remote Function through the button but it's not even detecting the player
I got it fixed Thanks Sinister