So I want to make a script which will pop a GUI up whenever someone respawns.FE is enabled, I've made the script but it doesn't seem to work for some reasons(Not popping up even when someone spawns first time)
These are inside the StarterPack(Might be the issue)
Script
local Players = game:GetService("Players") local RemoteEvent = game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("GiveGui") function onPlayerAdded(player) RemoteEvent:FireClient() end Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(onPlayerAdded) end)
Local Script
local RemoteEvent = game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("GiveGui") RemoteEvent.OnClientEvent:Connect(function(player) local gui = game:GetService("ReplicatedStorage"):WaitForChild("Natures"):Clone() gui.Parent = player.PlayerGui gui.Enabled = true end)
Thank you!