|
| 08 Aug 2016 03:01 AM |
Thanks in advance!
~The most desired of Robloxians |
|
|
| Report Abuse |
|
|
Encladeus
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 3839 |
|
|
| 08 Aug 2016 03:29 AM |
script.Parent.VehicleSeat.ChildAdded:connect(function(child) if child.Name == 'SeatWeld' then local Player = child.Part1.Parent end end)
When someone sits on your vehicle seat, this function returns the player character as the 'Player' varible
if you want to find that Character's player object add the following: local Character = Player:GetPlayerFromCharacter() |
|
|
| Report Abuse |
|
|
Poine
|
  |
| Joined: 14 Aug 2011 |
| Total Posts: 391 |
|
| |
|
|
| 08 Aug 2016 03:36 AM |
Alright thanks!
~The most desired of Robloxians |
|
|
| Report Abuse |
|
|