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

How do i prevent people from dropping past a certain point?

I have a game with a large/seemingly endless ocean, and I don't wanna generate tons of 1k by 1k parts to make the floor, is there a better way to limit how far down you can fall without running through every player and detecting their y-axis position?

1 answer

There really is no other alternative that is not going to look very buggy/glitch and cause problems with the player trying to move when you set their Torso's CFrame. I'd say limit how for out they can go (e.g. 6k studs or so). They'd probably never want to go out that far anyway, and with StreamingEnabled with the options of setting graphics levels, AND todays modern PC's? It's not really a big deal. That's only 3 of the largest blocks (2048 max stud size I believe) anyways, unless they changed it. You don't really have a choice here, and I don't see why that's a bad thing.

2 comments

0

Thanks for the advice, would it be better to build the floor by hand or to generate it with a script when the game starts?

0

It doesn't really matter. Just limit how far out they can go (2-10k studs should be good) and how deep they can go (doesn't matter as long as it isn't insanely deep tbh, like over 10k studs). I'd say script so it's easier though.

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