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

Need help making a tool unequipable?

Asked by 5 years ago
Edited 5 years ago

I want to make a tool "tool less"

Script so far -

-- In this example I use the player's backpack as a place to store the tool, however the tool can be stored where ever you like.

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false) -- This will disable all hotkeys for selecting tools along with removing the BackpackGui.

local player = game.Players.Player
local character = player.Character
local tool = player.Backpack.Tool

function equip(tool)
    tool.Parent = character
end

function unequip(tool)
    tool.Parent = player.Backpack
end

-- Simply call equip or unequip when you wish
0
With no backpack or custom backpack, I suppose you’d have to have the tool parts in the character/welded and use UIS to detect when the tool is equipped and being used ABK2017 406 — 5y
0
try output its useful but you should do local player = game.Players.LocalPlayer on line 5 HappyTimIsHim 652 — 5y

Answer this question