the code only works in his example file, normally i've been referencing the Players object using this first:
local Players = game:GetService("Players")
why is the 'game' static function not working in my own project?
the code only works in his example file, normally i've been referencing the Players object using this first:
local Players = game:GetService("Players")
why is the 'game' static function not working in my own project?
it was working, nevermind. turns out I had 2 parenthesis after onPlayerJoin
game.Players.PlayerAdded:Connect(onPlayerJoin())
when mine should have been
game.Players.PlayerAdded:Connect(onPlayerJoin)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Good Job!