Code in the local script (Just tells it to print when clicked on the model)
1 | script.Parent.ClickDetector.MouseClick:Connect( function () |
2 | print ( "this is working" ) |
3 | end ) |
It's not printing into the output when clicking on the model
Setup:
Note: Model is in ServerStorage for Cloning
Model is parent of (LocalScript and ClickDetector)
Link To Setup: https://ibb.co/6Zyf5Wn
You can't use local scripts in click detectors.
Use a script for click detectors.
1 | script.Parent.ClickDetector.MouseClick:Connect( function (plr) |
2 | print (plr.Name.. "clicked and this is working!" ) |
3 | end ) |