xXLiLxJXx
|
  |
| Joined: 15 Mar 2012 |
| Total Posts: 687 |
|
|
| 12 May 2014 07:17 PM |
How do I get a drivers seat of a car to know who is sitting in it?
I seen this but I dont know how to use it.
script.Parent.ChildAdded
-Can someone give me an example script on how to use it? |
|
|
| Report Abuse |
|
|
|
| 12 May 2014 07:32 PM |
Maybe...
Debounce = true
function onTouched(hit) print(hit.Parent.Name) end
Workspace.Seat.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
xXLiLxJXx
|
  |
| Joined: 15 Mar 2012 |
| Total Posts: 687 |
|
|
| 12 May 2014 07:38 PM |
| But i need it to know who is sitting on it. |
|
|
| Report Abuse |
|
|
xXLiLxJXx
|
  |
| Joined: 15 Mar 2012 |
| Total Posts: 687 |
|
| |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 12 May 2014 07:59 PM |
| SeatWeld has the name of the sitter. It's a property (or child?) of a seat. Only exists when a character is sitting in it, though. |
|
|
| Report Abuse |
|
|
xXLiLxJXx
|
  |
| Joined: 15 Mar 2012 |
| Total Posts: 687 |
|
|
| 12 May 2014 08:04 PM |
I tried sitting in it. I checked the weld and saw no name.
-Rebump |
|
|
| Report Abuse |
|
|