How do I make a GUI appear when a player joins? This is stupid complicated for me sadly.
Remote event that fires when a player joins (script)
local event = game.ReplicatedStorage
local Players = game:GetService("Players")
game.Players.PlayerAdded:Connect(function(player)
event.qeqeqeq:FireClient(player)
end)
This is the gui that got fired (local script)
event.qeqeqeq.OnClientEvent:connect(function(plr)
game.Players.CharacterAutoLoads = false
Player.Humanoid.Health = 0
script.Parent.Parent.Parent.MenuButton.Visible = false
script.Parent.Parent.Parent.Menu.Visible = true
PlayerGUI.HealthGui.Enabled = false
PlayerGUI.StatusUI.Enabled = false
PlayerGUI.CurrentVersion.Enabled = false
game.Players.LocalPlayer.CameraMode = Enum.CameraMode.Classic
SG:SetCoreGuiEnabled("Backpack", false)
workspace.CurrentCamera.FieldOfView = 110
Player.Humanoid.Died:Connect(function()
Player:Remove()
end)
end)
THIS script works in studio but when I join a game it doesn't work for some reason.

1 comment
Note: How do I also prevent the player from respawning (this happens sometimes) when they join?