Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Object doesnt open the Gui in game but opens in the Studio Read this for more info?

Asked by 4 years ago

This script only works in studio please help me I am using a Local Script To open a Gui when a player equips a tool but tje gui comes only in studio and not in Game

local Plr = game.Players.LocalPlayer
local GUI = Plr:WaitForChild("PlayerGui")
local Frame = GUI:WaitForChild("ScreenGui").Frame

script.Parent.Parent.Equipped:Connect(function()
    Frame.Visible = true
    print("Phone is been Equipped")

end)

script.Parent.Parent.Unequipped:Connect(function()
    Frame.Visible = false
    print("Phone is been UnEquipped")

end)

Here is the script please add me on DIscord and it will be better to help me with this Agentilspy Gaming#8624

0
Not pretty sure but you could try changing the .Enabled of the GUI.ScreenGui everytime you equip and unequip the tool kevinsoaresv 47 — 4y

Answer this question