generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: how to make it so players can't teleport with seat with them

Previous Thread :: Next Thread 
Swoof is not online. 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 is not online. 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
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
13 Aug 2015 12:43 PM
Make sit = false
Report Abuse
TheFermiParadox is not online. TheFermiParadox
Joined: 08 Aug 2015
Total Posts: 42
13 Aug 2015 12:44 PM
if player.Character.Humanoid.Sit == false then
-- code
end
Report Abuse
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
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 is not online. 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 is not online. 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
TheFermiParadox is not online. TheFermiParadox
Joined: 08 Aug 2015
Total Posts: 42
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 is not online. 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
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
13 Aug 2015 01:02 PM
Then make teleport faster
Report Abuse
Swoof is not online. Swoof
Joined: 13 Mar 2010
Total Posts: 16146
13 Aug 2015 01:20 PM
it is insta already
Report Abuse
ZackRichardson is not online. ZackRichardson
Joined: 10 Jun 2010
Total Posts: 419
13 Aug 2015 01:24 PM
Break the weld between the player and the seat, Mmk?
Report Abuse
Swoof is not online. Swoof
Joined: 13 Mar 2010
Total Posts: 16146
13 Aug 2015 02:03 PM
still not fixed im out of ideas
Report Abuse
Swoof is not online. Swoof
Joined: 13 Mar 2010
Total Posts: 16146
13 Aug 2015 02:09 PM
a
Report Abuse
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image