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

Whats Wrong With This Script?

Asked by 10 years ago
Circle = game.Lighting.CircleMesh

function onTouched()
Circle:clone()
Name = "Mesh"
Parent = game.Workspace.Dough
end

script.Parent:connect(onTouched)
0
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. TheeDeathCaster 2368 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago
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
0
Ok let me Try and ill get back to ya PixelZombieX 8 — 10y
0
That only Clone's 'Circle', then sets the Originals Parent to 'game.Workspace', you did not Identify the Cloned 'Circle'. :P TheeDeathCaster 2368 — 10y
0
OK i Did "Circle = game.Lighting.CircleMesh function onTouched() Circle:clone() Circle.Name = game.Workspace.Dough end" But it didnt work PixelZombieX 8 — 10y
0
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 TheeDeathCaster 2368 — 10y
View all comments (5 more)
0
No............... TheReapersComing 0 — 10y
0
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 PixelZombieX 8 — 10y
0
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. TheeDeathCaster 2368 — 10y
0
i put output but its not working nothing pops up PixelZombieX 8 — 10y
0
By looking at the code, I now see the problem. You did not connect any event to the function [.Touched, .Changed, ect.]. TheeDeathCaster 2368 — 10y
Ad

Answer this question