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

A click detector isn't working after I clone the whole model... IDK what to do??????

Asked by 4 years ago

I have a big problem... I am trying to clone a vehicle with a ClickDetector... After i clone it I can't use the detector any more please help me please

2 answers

Log in to vote
0
Answered by 4 years ago

Make sure your script gets its variables after it has been cloned, otherwise the script will still be referring to the stored ClickDetector. Maybe using something like

script.Parent:WaitForChild("ClickDetector")

might help? Idk im not great at scripting lol

Ad
Log in to vote
0
Answered by
RAFA1608 543 Moderation Voter
4 years ago
Edited 4 years ago

Make sure that the clickdetector Archivable property is true or checked, otherwise it wont come with the clone.

Answer this question