I really need this for an airline, any help?
Please read the steps carefully:
Create a GUI
Put the GUI into the tool
Put this local script into the tool
local tool = script.Parent local GUI = tool:FindFirstChild("GUINAME") or tool:WaitForChild("GUINAME") --If you don't know how to locate the Gui then you shouldn't be here tbh. local function Equipped() local char = tool.Parent local plr = game.Players:GetPlayerFromCharacter(char) if plr then local plrgui = plr:FindFirstChild"PlayerGui" or plr:WaitForChild"PlayerGui" GUI.Parent = plrgui end end local function Unequipped() GUI.Parent = tool end tool.Unquipped:connect(Unequipped) tool.Equipped:connect(Equipped)
NOTE: IF THIS DOESN'T WORK. DO NOT CALL ME SMH. IT WILL ONLY GET YOU BANNED FROM THIS WEBSITE. LOOK IN THE OUTPUT AND COMMENT WHAT THE OUTPUT SAYS.
Create a GUI called 'TabletGUI' (in the tool). Then create a localscript.
local gui = script.Parent.TabletGui:Clone() function Equip() gui.Parent = game.Players.LocalPlayer.PlayerGui end function Unequip() gui.Parent = nil end script.Parent.Equipped:connect(Equip) script.Parent.Unequipped:connect(Unequip)
01 local tool = script.Parent
02 local GUI = tool:FindFirstChild("GUINAME") or tool:WaitForChild("GUINAME")
03
04 local function Equipped()
05 local plr = game.Players.LocalPlayer
06 local plrgui = plr.PlayerGui
07 GUI.Parent = plrgui
08 end
09 local function Unequipped()
10 GUI.Parent = tool
11 end
12 tool.Unquipped:connect(Unequipped)
13 tool.Equipped:connect(Equipped)
Doesn't work.
Closed as Not Constructive by magicguy78942, Fragmentation123, User#20388, and User#21908
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?