I don't know why this is happening.. But when I try to use the item they break because the texture ID url is an error. How the tools are made is from a script creating them out another hopperbin tool that's placed in lightning Here is the script for the tool
local bin = script.Parent function round(num, idp) local mult = 10^(idp or 0) return math.floor(num * mult + 0.5) / mult end function onButton1Down(mouse) local player = game.Players.LocalPlayer if player == nil then return end points = player.leaderstats["Stat Points"] type = bin.Type.Value upg = player.stats[type] cost = math.floor(upg.Value ^ 1.45 / 10) + 1 if(points.Value < cost) then return end if(upg.Value >= 4999) then return end upg.Value = upg.Value + 1 player.leaderstats["Level"].Value = player.leaderstats["Level"].Value + 1 points.Value = points.Value - cost bin.Name = type .. ": " .. upg.Value end function onSelected(mouse) print("select") mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onSelected)
Here is the script that makes them and puts them inside players.
upgs = {"Health", "Agi", "Dmg", "Aspd", "Pspd", "Repulsor"} function onPlayerRespawn(property, player) if property == "Character" and player.Character ~= nil then for _, upg in ipairs(upgs) do local tool = game.Lighting.Default:clone() tool.Name = upg .. ": " .. player.stats[upg].Value tool.Type.Value = upg tool.Parent = player.Backpack end player.Character.Torso.Elasticity = 0 end end function onPlayerEntered(player) while true do if player.Character ~= nil then break end wait(1) end local stats = Instance.new("IntValue") stats.Name = "stats" for _, upg in ipairs(upgs) do local attrib = Instance.new("IntValue") attrib.Name = upg attrib.Value = 1 attrib.Parent = stats end stats.Parent = player onPlayerRespawn("Character", player) player.Changed:connect(function(property) onPlayerRespawn(property, player) end ) player.Chatted:connect(function(msg, recipient) onPlayerChatted(player, msg) end) end game.Players.ChildAdded:connect(onPlayerEntered)