Quixo
|
  |
| Joined: 29 Jan 2014 |
| Total Posts: 197 |
|
|
| 16 Jun 2016 11:44 AM |
Hi! I need someone to make me a script (for free preferably, please) that would make my character invisible when I sit in a vehicle seat, but when i get out reset my character's transparency. My arms right now are clipping through the car door, and it makes my car look bad... Can someone give me this script as a model in a part? If you could make it free for use of everyone, that would be awesome! My car nut friends would appreciate it.
Thanks, Quecco
|
|
|
| Report Abuse |
|
|
Quixo
|
  |
| Joined: 29 Jan 2014 |
| Total Posts: 197 |
|
|
| 16 Jun 2016 12:24 PM |
| Please everyone! It'll only take a minute! |
|
|
| Report Abuse |
|
|
|
| 16 Jun 2016 12:25 PM |
I'm not making it for you, but I'd be happy to help.
Also, why not edit the car to fit the size of the character? |
|
|
| Report Abuse |
|
|
doggy00
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 3571 |
|
|
| 16 Jun 2016 01:07 PM |
there's a slightly complicated way to do this, but this one would make you invisible no matter what you sit in (non-vehicle seat).
I won't give you the whole thing because you didn't even give me a script to work with, but I'll give you the main part.
put this in StarterCharacterScripts (under StarterPlayer).
while true do wait() if script.Parent.Humanoid.Sit == true then --make robloxian invisible (use getchildren preferably) else --make robloxian visible (use getchildren preferably) end end
|
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 16 Jun 2016 01:07 PM |
^ why
Formerly ToxicDominator - add 17,509 posts | :(){:|:&};: |
|
|
| Report Abuse |
|
|
Smeers
|
  |
| Joined: 14 Feb 2013 |
| Total Posts: 797 |
|
|
| 16 Jun 2016 01:10 PM |
There's a better way to do this.
I remember there being a property in the Humanoid for the vehicleseat it is currently sitting in, but I might be confusing it for a property inside of the vehicle seat.
If vehicles are local, you could probably easily find when a player sits in the vehicle, use that property to target _that specific player_, then make them transparent. |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 16 Jun 2016 01:10 PM |
^ seat.Occupant
Formerly ToxicDominator - add 17,509 posts | :(){:|:&};: |
|
|
| Report Abuse |
|
|
Smeers
|
  |
| Joined: 14 Feb 2013 |
| Total Posts: 797 |
|
|
| 16 Jun 2016 01:11 PM |
Found the property (sorry for doublereply):
SeatPart in Humanoid is a property, returns the part the player sits in, read-only obv
Occupant in VehicleSeat determines who's sitting in it. Same for Seat instances. |
|
|
| Report Abuse |
|
|