how would i change the max activation on a click Detector this would i have so far but it didnt work

game.workspace.ButtonBlastDoor.ClickDetector.MaxActivationDistance = 10

4 comments

0

Changing it when a player clicks it? Or changing it to always have a max distance of 10?

0

for one, don't hard code it. second, use an int value outside the script and use the value of that int value to set the MaxActivationDistance

0

yea but i just need to know whats wrong with my script

0

nothing is wrong with that selective code, it is something else inside of the script