help me simple script

hi
my friend i make a simple game the player play with a ball …
i want asimple script if there a colision ball other model print maxspeed after this Down the speed gradually replay this action when get a colision ? please help me

If you post threads with more descriptive titles than “help me simple script” people are more likely to reply.

Do you know about OnCollisionEnter?

For printing, do you want to print to the console, or make text appear on the screen? How much do you already know about text display?

Why do you want to manually decrease the speed? Shouldn’t this happen anyway if it hits something? I’m not sure what you’re describing.

Replaying is not something that’s that pleasant to do in unity - how complicated is your scene?

thanx my friend yes Made a mistake in the title …
yes i used this function i will serch more there is good
i creaye a 1/2 of this script i will complet this code with unity referecne