So I always struggle define players through regular scripts. When you use a local script, you just use local player = game.Players.LocalPlayer
but, I need to do this through a regular script. Is it even possible?
You can use multiple things like using a ClickDetector,ClickDetector.MouseClick:Connect(function(player)
, the PlayerAdded event, Players.PlayerAdded:Connect(function(player)
, the GetPlayerFromCharacter function, commonly used with the Touched event of a part, Players:GetPlayerFromCharacter(hit.Parent)
, or using a remote event or function, RemoteEvent.OnServerEvent:Connect(function(player)
.