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

i cant clone things to workspace?

Asked by 7 years ago

NG5.MouseButton1Down:connect(function() Mob = NG9.Text local Mob1 = game.Lighting[Mob]:Clone().Parent = workspace end)

I put the name of the mob in the textbox, and it doesnt clone.

It's a tad bit annoying.

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

For starters when using these [] you should always use ' or " around the name as it will find it. Also if this is in a textbutton or image button, use MouseButton1Click instead of Down. I also suggest defining NG9 and NG5.

local NG5 = --whatever NG5 is
local NG9 = --whatever NG9 is

NG5.MouseButton1Down:connect(function() 
local Mob = NG9.Text
 local Mob1 = game.Lighting["Mob"]:Clone().Parent = game.Workspace 
end)
0
If this doesn't work, please send me your output. Conquesias 85 — 7y
Ad

Answer this question