Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Problem with game.Players.LocalPlayer, Help?

After the Maintenance. I opened up Roblox Studio to edit the scripts and some of my scripts aren't working? I fixed each of them and nothing works. It says an error that it is a nil value.

local bahhh = game:GetService("Players").LocalPlayer

This even don't work. I tried some replacements and nothing can fix it. I need help?

3 comments

0

What tip of script do you used?

0

what script are you using? normal, local, module?

0

Script and local

1 answer

If you're running the code in a normal (server) script it's because the server have no player, and in turn there is no local player. It can only be used in local (client) scripts.

This discussion is preserved as it was. New answers, comments, and votes are closed.