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

HopperBin tool texture Id URL error?

Asked by
lomo0987 250 Moderation Voter
11 years ago

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

01local bin = script.Parent
02 
03function round(num, idp)
04    local mult = 10^(idp or 0)
05    return math.floor(num * mult + 0.5) / mult
06end
07 
08 
09 
10function onButton1Down(mouse)
11    local player = game.Players.LocalPlayer
12    if player == nil then return end
13 
14    points = player.leaderstats["Stat Points"]
15    type = bin.Type.Value
View all 31 lines...

Here is the script that makes them and puts them inside players.

01upgs = {"Health", "Agi", "Dmg", "Aspd", "Pspd", "Repulsor"}
02 
03function onPlayerRespawn(property, player)
04    if property == "Character" and player.Character ~= nil then
05        for _, upg in ipairs(upgs) do
06            local tool = game.Lighting.Default:clone()
07            tool.Name = upg .. ": " .. player.stats[upg].Value
08            tool.Type.Value = upg
09            tool.Parent = player.Backpack
10        end
11        player.Character.Torso.Elasticity = 0
12    end
13end
14 
15function onPlayerEntered(player)
View all 41 lines...
0
No one? lomo0987 250 — 11y

Answer this question