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

How to teleport a player into a seat? [Solved]

Asked by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
9 years ago

Hey all! Another question today! I was wondering how to teleport a player into a seat. So, let me elaborate. I already know you can use :MoveTo() to teleport a player to the seat's position, but how do I make it so they are sitting in the seat. Any tips? Thanks!

0
Try ":SetPrimaryPartCFrame()" instead. Since the PrimaryPart of a character object is usually the head, maybe offset the PrimaryPart up by a few studs. Redbullusa 1580 — 9y
1
Why not just manually make a seat weld between the seat and the player? Spongocardo 1991 — 9y
1
You could always script your own seat. aquathorn321 858 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

If you move them slightly above it and then set their humanoid's Sit property to true, that should work :)

0
I've just tried it. Sadly, it didn't work Shawnyg 4330 — 9y
0
Ah, sorry :/ A seat works by making a weld between the seat and the HumanoidRootPart of the character. TP the character into position, set sit to true, then weld the humanoidrootpart to the seat (and parent the weld to the seat). FlyScript 35 — 9y
0
Then when they jump they'll be stuck to the seat aquathorn321 858 — 9y
Ad

Answer this question