In one of my local scripts there is a reference towards local player:
local player = game.Players.LocalPlayer
but, Roblox Studio Detects it as a hanging script because the player has not loaded in yet. Then, no matter what I press(Break, Kill Script or just close out of prompt window), Roblox Studio Takes a long time to respond.
I don't think this is important, but until it is responsive, the stop and play button are both colored.
Even after it starts responding, it crashes when I try to open the tab of my game. Please Help!
while not game.Players.LocalPlayer do wait() end local player = game.Players.LocalPlayer
if that does not work then it is probably a different script, your example should just give a nil reference error and not hanging. it could possibly be a free model as people tend to put "viruses" in them with the purpose of lagging your game. and you should still wait for LocalPlayer to be set either way