Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

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.

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? Professor_Boxtrot 136 — 6y
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. MedievalBeast4 4 — 6y
Ad

Answer this question