I used the code,
game.Players.LocalPlayer.PlayerGui.ScreenGui.Bcrops.Text
in the script but an error shows up telling me that localplayer is nil
Workspace.Test.Script:25: attempt to index nil with 'WaitForChild'
so , i put :WaitForChild on my line like this ,
game.Players:WaitForChild("LocalPlayer").PlayerGui.ScreenGui.Bcrops.Text
then a yellow text shows up saying there are infinite yield that is possible on 'Players:WaitForChild("LocalPlayer")'
Infinite yield possible on 'Players:WaitForChild("LocalPlayer")'
how do I fix it plz help me

2 comments
LocalPlayer ONLY works for local scripts
But can a localscript connect to modulescript ?