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: Question

Previous Thread :: Next Thread 
ColinRocks99 is not online. ColinRocks99
Joined: 04 May 2013
Total Posts: 1533
03 Mar 2016 08:54 PM
How do I make it so when A Player Touches a Vehicle seat, The Player becomes a Child of the Vehicles parent?
Report Abuse
supremebloxboy is online. supremebloxboy
Joined: 12 Jun 2010
Total Posts: 424
03 Mar 2016 10:36 PM
if you don't want the player to go back into workspace when the player stops touching the seat delete the lines with --


function OnTouch(Hit)
Hit.Parent.Parent = script.Parent
end

function TouchEnd(End) --
End.Parent.Parent = workspace --
end --

script.Parent.Touched:connect(OnTouch)
script.Parent.TouchEnded:connect(TouchEnd) --
Report Abuse
ColinRocks99 is not online. ColinRocks99
Joined: 04 May 2013
Total Posts: 1533
04 Mar 2016 08:14 PM
Great, Thanks! Now how Do I lock the Player in the seat, Seatwelds? I Want to make it so the Player Can't leave the car.
Report Abuse
supremebloxboy is online. supremebloxboy
Joined: 12 Jun 2010
Total Posts: 424
04 Mar 2016 09:46 PM
Just disable there jump power, they wont be able to move
Report Abuse
supremebloxboy is online. supremebloxboy
Joined: 12 Jun 2010
Total Posts: 424
04 Mar 2016 09:48 PM
function OnTouch(Hit)
Hit.Parent.Parent = script.Parent
Hit.Parent.Humanoid.JumpPower = 0
end
script.Parent.Touched:connect(OnTouch)
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