#does anyone know why this doesn't work

1 messages · Page 1 of 1 (latest)

tardy marsh
#
local Ui = script:WaitForChild("bomengui")

script.Parent.Equipped:Connect(function()
    local ScreenGui = Ui:Clone()
    ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
end)

script.Parent.Unequipped:Connect(function()
    game.Players.LocalPlayer.PlayerGui:FindFirstChild(Ui.Name):Destroy()
end)

i might be dumb

drowsy glacier
#

local Ui = script:WaitForChild("bomengui")

script.Parent.Equipped:Connect(function()
local player = game.Players.LocalPlayer
local screenGui = Ui:Clone()
screenGui.Parent = player:WaitForChild("PlayerGui")
end)

script.Parent.Unequipped:Connect(function()
local player = game.Players.LocalPlayer
local gui = player.PlayerGui:FindFirstChild(Ui.Name)
if gui then
gui:Destroy()
end
end)

teal oracle
#

what dosent work about it

drowsy glacier
#

I think

eager magnet
#

i might be wrong, but arent u supposed to put the GUI in StarterGui service?

#

local player = game:GetService("Players").LocalPlayer
local Ui = player:WaitForChild("PlayerGui"):WaitForChild("bomengui")

small nacelleBOT
#

studio** You are now Level 3! **studio

eager magnet
#

just like that

#

then u should just clone it and change the transparency

#

im gonna check it wait