|
| 03 Mar 2016 08:54 PM |
| How do I make it so when A Player Touches a Vehicle seat, The Player becomes a Child of the Vehicles parent? |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2016 10:36 PM |
if you don't want the player to go back into workspace when the player stops touching the seat delete the lines with --
function OnTouch(Hit) Hit.Parent.Parent = script.Parent end
function TouchEnd(End) -- End.Parent.Parent = workspace -- end --
script.Parent.Touched:connect(OnTouch) script.Parent.TouchEnded:connect(TouchEnd) -- |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2016 08:14 PM |
| Great, Thanks! Now how Do I lock the Player in the seat, Seatwelds? I Want to make it so the Player Can't leave the car. |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2016 09:46 PM |
| Just disable there jump power, they wont be able to move |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2016 09:48 PM |
function OnTouch(Hit) Hit.Parent.Parent = script.Parent Hit.Parent.Humanoid.JumpPower = 0 end script.Parent.Touched:connect(OnTouch) |
|
|
| Report Abuse |
|
|