So basically I have a script that greets player with black screen when he joins but soon after becomes transparent. It works in StarterGui but it really problematic in editor because it is visible. I want to use the PlayerAdded so that the ScreenGui is put in Players.LocalPlayer.PlayerGui but I have problems with it. Excuse me for my horrible sentencing.
script:
local Players = game:GetService("Players")
local gui = Players.LocalPlayer.PlayerGui
local blink = game:GetService("ServerStorage"):GetChildren("blink")
Players.PlayerAdded:Connect(function()
blink:Clone(gui)
end)
error that comes with game start:
ServerScriptService.blinker:2: attempt to index nil with 'PlayerGui' - Server - blinker:2
Stack Begin - Studio
Script 'ServerScriptService.blinker', Line 2 - Studio - blinker:2
Stack End - Studio

1 comment
Is the script you are using a LocalScript or a normal Script?