Circle = game.Lighting.CircleMesh
function onTouched()
Circle:clone()
Name = "Mesh"
Parent = game.Workspace.Dough
end
script.Parent:connect(onTouched)
Whats Wrong With This Script?
1 answer
Circle = game.Lighting.CircleMesh
function onTouched()
Circle:clone()
Name = "Mesh"
Parent = game.Workspace.Dough
end
script.Parent:connect(onTouched)
.It's not working because you haven't configured it's parent yet. Instead of Parent = you'd do Circle.Parent.
Circle:Clone()
Circle.Parent = game.Workspace
9 comments
Ok let me Try and ill get back to ya
That only Clone's 'Circle', then sets the Originals Parent to 'game.Workspace', you did not Identify the Cloned 'Circle'. :P
OK i Did "Circle = game.Lighting.CircleMesh function onTouched() Circle:clone() Circle.Name = game.Workspace.Dough end" But it didnt work
Because it is only Cloning 'Circle', he didn't identify the Cloned 'Circle', thus, the Cloned 'Circle''s Parent is set to nil, and the originals Parent is set to 'game.Workspace', also, consider using the 'WaitForChild' method. Don't worry, I'm not hating, just pointing out mistakes. :P
No...............
i mean here "Circle = game.Lighting.CircleMesh Dough = game.Workspace.Dough function onTouched() Circle:Clone() Circle.Parent = Dough end script.Parent:connect(onTouched)" i used this one
Do you have any Output? It'll give us a better understanding of the problem if you do, or if you explain what is wrong, that'll help even more.
i put output but its not working nothing pops up
By looking at the code, I now see the problem. You did not connect any event to the function [.Touched, .Changed, ect.].
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
What is the problem? Why is it not working? Do you have any Output? Please include what is wrong with the script, we can not simply look at the script and see the problem instantly, please include any kind of Output, or what is wrong with the script.