Issue with tools disabling

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I want to achieve the tools being disabled while being in passive.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I’m trying to disable the inventory whilst being passive, I’ve tried different tactics and everything but it still came out to be nothing, I’ve used a instance.new(“folder”) and that work but I’ve never seemed to get the tool from the backpack to parent onto the folder and loop back around while being unpassive.

Forums really didnt come back with anything helpful with my situation.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

		if message == "!passive" then
			Humanoid.MaxHealth = math.huge
			Humanoid.Health = Humanoid.MaxHealth
			local character = player.Character
			local ClonedBB = script.passiveBoard:Clone()
			ClonedBB.boardDisplay.Visible = true
			ClonedBB.ResetOnSpawn = true
			ClonedBB.Parent = Character.Head
			
			--local Weapons = Instance.new("Folder")
			--weapons.Name = "Weapons"
			--Weapons.Parent = player.Backpack
			
			PassiveEvent:FireAllClients()
1 Like

can u explain the problem more, if u want the tool to disable u can do Tool.Enabled = false

I can do that but that would be messy if you think about it, I wanna disable the tools instead of doing every singular code for it. I tried to do it by a folder by using the instance then looping it back after being unpassive but I couldnt seem to parent the tool from the backpack to the folder without a error

With what I understand, you could probably use tags to solve this??
You could tag, or mark the tools you’ve disabled to due the fact the player is passive like this

Tool:AddTag("PassiveDisabled")
Tool.Enabled = false

Then later when you want it to be active again you can loop through your tools again and do

if Tool:HasTag("PassiveDisabled") and not Tool.Enabled then
Tool:RemoveTag("PassiveDisabled")
Tool.Enabled = true
end

(the tools will still remain in the players backpack but you cant use it anymore)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.