Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does the ScreenGui not Pop-up?

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)

1 answer

Nevermind! to fix this problem all i had to do was to disable the RequiresHandle.

This discussion is preserved as it was. New answers, comments, and votes are closed.