How do I make this script trigger on player touch?
Hey, I have this script that makes a part move up and down however I would like the script to start when I have touched the part? How would I do this? Any help would be great ! :D
Here is the script:
01 | for i = 1 , 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 , 1 do |
05 | script.Parent.CFrame = script.Parent.CFrame+Vector 3. new( 0 , 0.2 , 0 ) |
11 | script.Parent.CFrame = script.Parent.CFrame-Vector 3. new( 0 , 0.2 , 0 ) |