#Roblox tool hotbar overlapping with custom tool hotbar
1 messages · Page 1 of 1 (latest)
For reference this is what I tried to put in two different Local Scripts that i tried:
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local mainMenu = playerGui:WaitForChild("TitleScreenGui").TitleScreen
local StarterGui = game:GetService("StarterGui")
local PlayButton = StarterGui.TitleScreenGui:WaitForChild("TitleScreen"):WaitForChild("Play")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
script.Parent.MouseButton1Click:Connect(function()
mainMenu.Visible = false
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
end)
And the other is just this:
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
When you click scripts parent that is a button i suppose it turns on the coregui fot backpack
Whats gonna be its parent tho