Spawning object by ui button Chaging Player's Speed And Other Player's Speed And AI Speed ui sliders

Hello im making A sandbox game and i’m having these 2 problems: 1) Spawning object by ui button. 2) Chaging Player’s Speed And Other Player’s Speed And AI Speed ui sliders.

No-body has Experience this problem, Can Somebody send me a video/script of how to do it, is making me to feel to skip something that i dont want to skip.

Please anybody send me a script/tutorial of it.

I will put him in the credits

Spawning objects is done with Instantiate. Buttons are handled by adding a method to the OnClick list for the button in the inspector. Sliders are handled by adding a method to the OnValueChanged list for the slider, where it can pass the new value directly, or the called method can simply get the value from the slider when called.

Changing an object’s speed depends on how you are applying movement to your object. If you’re applying a constant force, you would simply increase or reduce the force applied each FixedUpdate. If you’re setting physics velocity directly, you’d simply assign a new desired velocity. If you’re not moving using physics at all, and instead using transform.Translate, you’d multiply the Vector3 you’re using for direction by a larger or smaller number to change the speed.

Manual and scripting reference links to everything I mentioned. Since these are all very basic and commonly used engine features, you should have no problem finding tutorial videos for them on your own with some quick searches on YouTube or looking through the Learn section here.

https://docs.unity3d.com/Manual/script-Button.html
https://docs.unity3d.com/Manual/script-Slider.html

Should try this! and if it works thanks!

oh and im making a 3d game not 2d…

All the links I included were for a 3D game.

oh gosh, sorry to disturb you