Answered by
3 years ago Edited 3 years ago
The problem is there is no such property (or whatever you call it) in this event so you can't get a Player
by this method. Since it is in a local script, all you need to do is to replace 'player' to game.Players.LocalPlayer
so you want this code below.
1 | script.Parent.Activated:Connect( function () |
2 | print (game.Players.LocalPlayer) |
If I understand what you trying to do, you will face some issues (but I don't really know why you need this). If you have some problems with this, just ask me in the comments below.