Swoof
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 16146 |
|
|
| 13 Aug 2015 12:41 PM |
when someone is sitting down, and a script teleports them, the seat gets glitched and teleports with them
besides making them jump once teleport starts, what's the best way 2 prevent this
|
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 13 Aug 2015 12:43 PM |
| Oh wow, you're trying to make an effort with making games instead of taking other peoples games. |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Aug 2015 12:44 PM |
if player.Character.Humanoid.Sit == false then -- code end |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2015 12:45 PM |
| @Fermi, no one would teleport with that script because they'd be sitting, and your making the if statement check if they aren't to run the code |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 13 Aug 2015 12:45 PM |
| check if anyone has humanoid.Sit to true. if it is, just set it to false (or destroy the SeatWeld that is inside of the seat) |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 13 Aug 2015 12:48 PM |
| Or you can just set sit to false either way since it doesn't matter either way |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2015 12:50 PM |
@zarman Oh yeh
if player.Character.Humanoid.Sit == true then player.Character.Humanoid.Sit = false -- code end |
|
|
| Report Abuse |
|
|
Swoof
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 16146 |
|
|
| 13 Aug 2015 01:00 PM |
it's set to set sit to false already,
but if u time it properly, like jump on the seat the moment u teleport, it still glitches it |
|
|
| Report Abuse |
|
|
| |
|
Swoof
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 16146 |
|
| |
|
|
| 13 Aug 2015 01:24 PM |
| Break the weld between the player and the seat, Mmk? |
|
|
| Report Abuse |
|
|
Swoof
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 16146 |
|
|
| 13 Aug 2015 02:03 PM |
| still not fixed im out of ideas |
|
|
| Report Abuse |
|
|
Swoof
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 16146 |
|
| |
|
|
| 13 Aug 2015 02:19 PM |
Add this to the sit = false script if you have a timer for your game, which I hope you do, please immigrate it to support this script I'll make
You need to connect your timer to the variable called "time"
player = game.Players.LocalPlayer mouse = player:GetMouse()
mouse.KeyDown:connect(function(key) if time == 0 then if key == key:byte(32) then player.Character.Humanoid.Sit = false else player.Character.Humanoid.Sit = false
This may or may not work!!!!!! put in local script though |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 13 Aug 2015 02:20 PM |
All those methods are Deprecated.
http://wiki.roblox.com/index.php?title=API:Enum/HumanoidStateType
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|