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

How to script a gear without it's normal gui?

Asked by 7 years ago

Hi, this is my first post and am trying to script a gui that equips a gear using the gui i made instead of the one at the bottom of the screen. I've got the gui where when you click it, my player receive the gear in his backpack but the gui always spawns on the bottom of the screen. How do i remove this permanently so the gear is only equipped using my gui? Any suggestions would be appreciated :)

1 answer

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

Basically you disable the CoreGui by SetCoreGuiEnabled function

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

Note that this code must be inside local script

here is all you need

Btw since the backpack will be disabled you won't be able to move tools from backpack to player's character. Make sure that ur gear giver inserts the tool inside player's character.

0
IT WORKED! :D Worthy0ne 68 — 7y
Ad

Answer this question