So for this basic example, I am trying to print out the Players ClassName.
script.Parent.Touched:connect(function(player)
print(game.Players.player.ClassName)
end)
From what I believe this script should print "Player", but instead I get the Error from the Output " player is not a valid member of Players". So how would I go about locating the Player in "Players" through a regular script? Answers appreciated, Thank You.
~ Xduel

1 comment
So I tried expanding upon this with adding a KeyDown event, in which when the player is on the part and presses a certain key, an event will happen. I got a script that worked in Play Solo, but not Start Server.