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

Group tool for minibuilds broken?

Asked by
jobruin 10
10 years ago
Selection={}
create=0
A=true

local player=game.Players.LocalPlayer

function select(adornee)
sel=Instance.new("SelectionBox")
sel.Parent=player.PlayerGui
sel.Adornee=adornee
sel.Color=BrickColor.new("Really blue")
table.insert(Selection, sel)
end

function PM(text, parent, type, w)
m=Instance.new(type)
m.Parent=parent
m.Text=text
wait(w)
m:remove()
end


function C(mouse, name)
t=mouse.Target
if t~=nil and not t.Locked then
to=workspace:findFirstChild(player.Name.."'s Created model "..create)
if to~=nil then
t.Parent=to
select(t)
end
end
end

function B(key, group)
if key=="m" and A then
for i=1, #Selection do
Selection[i]:remove()
wait(0.1)
end
A=false
create=create+1
model=Instance.new("Model")
model.Parent=workspace
model.Name=player.Name.."'s Created model "..create
PM("Model "..create.." created", player, "Message", 1.5)
wait(2)
A=true
end
end

function Do(mouse)
mouse.Button1Down:connect(function () C(mouse) end)
mouse.KeyDown:connect(B)
PM("Key m to create a Model...", player, "Hint", 3)
wait(0.1)
PM("and click any brick to place into that model", player, "Hint", 3)
end
script.Parent.Selected:connect(Do)


function V()
for i=1, #Selection do
Selection[i]:remove()
wait(0.1)
end
end

script.Parent.Deselected:connect(V)


game.Players[player].Chatted:connect(function (msg)
if string.sub(msg,1,5)=="edit/" then
create=string.sub(msg,6)
end
end )

The tool is a hopperbin I'm guessing thats why it wont work?

0
Please inform the output and script finality. Tesouro 407 — 10y
0
13:20:16.462 - Script 'Workspace.HopperBin.Script', Line 72 13:20:16.463 - Stack End jobruin 10 — 10y

Answer this question