So i made a ScreenGui in a tool (btw it is being cloned by a remote event as the tool is stored in replicated storage, this is because i only want specific players to recieve the tool.) I made the script so that when you equip it the AwakenGui <- (screengui) clones itself into the PlayerGui of the LocalPlayer but when i test it, it does not clone itself into the PlayerGui. Heres the script:
local awakenClone
script.Parent.Equipped:Connect(function()
if not game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("AwakenGui") then
awakenClone = script.Parent.AwakenGui:Clone()
awakenClone.Parent = game:GetService("Players").LocalPlayer.PlayerGui
end
end)
script.Parent.Unequipped:Connect(function()
awakenClone:Destroy()
end)
