so im having problems I tried everything but whenever i go into a normal game this gui doesnt show up. But in "play solo" in roblox studio this code works so idk

	local players = game:GetService("Players")
	 
	function addPlayer(player)
	    local isVip = {["WillBe_Stoped"] = true, ["Saucy_Harden"] = true, [""] = true,[""]= true,[""]= true,[""]= true}
	    if isVip[game.Players.LocalPlayer.Name] then
	    player.PlayerGui:WaitForChild("ScreenGui").Spawn.Disable.Visible = true
	    end
	end
	 
	 
	for _,player in pairs(players:GetPlayers())do
	    addPlayer(player)
	end
	 
	 
	players.PlayerAdded:Connect(addPlayer)

this is a server script but I have no idea which one it should be lol xd

4 comments

0

Can't reference LocalPlayer from the Server.

0

hmm so got any idea how to do this under filtering enabled?

0

In Studio's Play Solo mode, there is no separation of the server and client.

0

but im actually hella confused on how to make this FE i tried it but it doesnt work. The gui showed up but the textbutton does nothing