Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Base components of a randomly generated obby?

How would I make a randomly generated obby? Please do not make it for me all I want is te base information.

1 answer

Primary Parts! - I would highly recommend you look into "PrimaryParts". In this sense, you can have multiple fragments of obbies that have connecting pieces connected to other connecting pieces of different obbies.

Like a puzzle piece! A Connect-The-Dot Concept with multiple dots!

You can set the PrimaryPartCFrame of one obby fragment and connect it to the primarypart of another!

How Does it Work? Simply have a fragment of an obby and make it into a model. Find a point in the obby that you can connect to the points of other obbies and place a part in this Coordinate Frame. Within the model properties, there is a property called "PrimaryPart". Set the primary part to this connecting part.

Store all Obby parts within a folder and make a random number generator to choose which obby is connected to where (math.random()) and use :SetPrimaryPartCFrame(CFrame Value) to set the primary part position of the model (which practically moves the whole model with it!)

Resources -

https://developer.roblox.com/en-us/articles/positioning-objects https://developer.roblox.com/en-us/api-reference/property/Model/PrimaryPart

This discussion is preserved as it was. New answers, comments, and votes are closed.