So I'm trying to make a button for my game to declare war between two countries, and I have a part for each country. So I put a ClickDetector in each part, and here's my script so far:
function activatefalse() script.Parent.ClickDetector.MaxActivationDistance = 0 end if game.StarterGui.Controls.WarButton.MouseButton1Click then script.Parent.ClickDetector.MaxActivationDistance = 999999999999 end
When I run it, the click detector's max distance is already 99999999 even though I didn't click the button yet.

1 comment
hey this is not an awnswer but you can click the lua icon and it will make it look like a real script