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

How can I allow players to move freely about a deck of a ship?

Asked by 5 years ago

Basically, I have a ship that, when being controlled, every 2 frames the CFrame of it's primary part is changed. But, I want players to be able to move across the deck without this happening:

Player is moved back as the boat moves forward.

I read somewhere about an update where players standing on objects would be carried along with the object, but I don't have any links to the post. If that could be helpful here, I'd appreciate knowing where it's applicable and how I can make it work for this scenario.

What is a logical way I could do this? I was able to just freeze the player and use an object space frame to keep them in the same position relative to the primary part, but that isn't really the point as I want them to be able to move around. Any ideas? Thanks!

0
use bodyposition TheluaBanana 946 — 5y

2 answers

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

10 / 10 idea:

make all players in the ship teleport to a replica of the ship that is hidden from view, there make a fake environment, move it like a treadmill all while the replica is stationary, at the same time simulating the real ship moving to its destination. Once the real ship arrives teleport all players back to the real ship and nobody, wether inside the ship or outside of it, would be any wiser.

Or you could just use the less cooler bodyposition and bodygyro and adjust them accordingly

1
also the latter suggestion is a bit laggy TheluaBanana 946 — 5y
1
just ask those jailbreak trains TheluaBanana 946 — 5y
0
lmao I genuinely considered this ThatPreston 354 — 5y
1
lol TheluaBanana 946 — 5y
Ad
Log in to vote
0
Answered by
Vmena 87
5 years ago
Edited 5 years ago

You may be able to move them forward using BodyForce updated to the same speed of the ship, creating a smooth feeling when walking on the ship as they are actually being pushed along with it.

BodyForce is an object (if you didn't know where to find it), you can summon it with the Instance.new() function.

0
Summon it LOL. User#25115 0 — 5y
0
Using BodyPosition for the players could become a problem when the user is trying to walk around on the ship when not scripted to make due, so I recommend BodyForce for your purposes. Vmena 87 — 5y
0
lol thanks I can never find body force in the menu ThatPreston 354 — 5y
0
You can use Advanced Objects to locate any object that exists in the game. Model Tab>Advanced Objects Vmena 87 — 5y

Answer this question