Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

i cant clone things to workspace?

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

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)

1 comment

0

If this doesn't work, please send me your output.

This discussion is preserved as it was. New answers, comments, and votes are closed.