Whoops, I will try and add the handle to the tool.
1 Like
lol, i just disabled the âRequiresHandleâ in properties and it started to work
2 Likes
Hahahaha, exactly, I just added one and whoop it worked. I didnât even think to look for a handle at the beginning.
2 Likes
problem solved i guess haha. characterlimitsareannoying
1 Like
This line is wrong. You define backpack not a player, but tool can go to character so you need to change it when it is equipped and unequipped.
Fixed code:
local Tool = script.Parent
Tool.Equipped:Connect(function()
local Player = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
local UI = Tool:WaitForChild("Tool_Interface")
UI.Parent = Player:WaitForChild("PlayerGui")
UI.Updater.Enabled = true
end)
Tool.Unequipped:Connect(function()
local Player = Tool.Parent.Parent
local UI = Player.PlayerGui:FindFirstChild("Tool_Interface")
if UI then
UI.Updater.Enabled = false
UI.Parent = Tool
end
end)
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.