Hi

I'm designing a simple game in which the player has to step across a series of parts. The parts will be moving at velocities, and in directions, which I'd like to set at the start of the game.

I think I know how to write the script which is a child to a part, in order to set the velocity/directions for that part. However I would like to set the velocities/directions for all of the parts at the start of the game. Is there a way of doing this through some form of 'start-up' script which can set all of the parameters for each of the parts?

Just for clarity, I think I know how to write the code to set the values. What I don't know is how to trigger the set-up of those values at the start of the game. Perhaps there is some form of 'Ongamestart' event which could be used.

I hope this question makes sense, and thanks in advance for your help.

Chris

2 comments

0

Well, any script you make will execute exactly when the game starts, but just in case check this out https://developer.roblox.com/en-us/api-reference/class/ReplicatedFirst

0

Thank you Starmaq. I will need to look at this more closely, but it looks like it might be what I need. Thanks