local Players = game:GetService("Players") local player = Players.LocalPlayer if player.MembershipType == Enum.MembershipType.Premium then script.MorphGui:Clone().Parent = player.PlayerGui end
Hello! In order to use this, you need to make a normal script to clone the GUI everytime a player dies. Put the GUI in ServerStorage and name it "PremiumGui"
game.Players.PlayerAdded:Connect(function(player) wait(2) if player.MembershipType == Enum.MembershipType.Premium then local clone = game.ServerStorage:FindFirstChild("PremiumGui"):Clone() clone.Parent = player:FindFirstChild("PlayerGui") player.Character:FindFirstChild("Humanoid").Died:Conect(function() wait(7) local clone = game.ServerStorage:FindFirstChild("PremiumGui"):Clone() clone.Parent = player:FindFirstChild("PlayerGui") end end end
EDIT
Put this LOCALSCRIPT inside the GUI and put the GUI in Starter GUI and tick enabled to false in properties
local Player = game.Players.LocalPlayer if Player.MembershipType = Enum.MembershipType.Premium then script.Parent.Enabled = false end
Put this inside a local script inside StarterGui:
local Players = game:GetService("Players") local player = Players.LocalPlayer game.Players.PlayerAdded:Connect(function() if player.MembershipType == Enum.MembershipType.Premium then local clone = script.MorphGui:Clone() clone.Parent = player.PlayerGui end end)
It should work.
If this helped please accept this answer.