For example: What if i had this code:
Local clickdetector = script.Parent.Clickdetector clickdetector.MouseClick:Connect(function() local newpart = game.Workspace.part end) -- Here it will underline "newpart" with a red. How would I make it not do that?

3 comments
oof it says it is a nil value
sorry
but you could use values like IntValue