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 » Scripting Helpers
Home Search
 

Re: Plane seat scripting with weapons

Previous Thread :: Next Thread 
metalberlioz is not online. metalberlioz
Joined: 09 Jul 2011
Total Posts: 24
20 Dec 2013 01:23 PM
Hello. I want to make sci-fi fighters for a group of mine and can make the shell of the plane fine. I have begun to learn how to script and can do basic things like making doors with buttons, text box etc. However I am having trouble scripting plane seats that contain weapons.
I can't find a guide to help me so if someone can refer me to a wiki guide on it (have looked on official roblox wiki)that would be helpful or if someone can give me some help here, that would also be very much appreciated. :)
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
20 Dec 2013 01:29 PM
VehicleSeats are not a wise way of storing Tools because the VehicleSeat is a physical object, as are the Tools. Parenting the Tools to the VehicleSeat will result in nothing more than the Tool staying where it is. It's better to place them in Lighting or Serverstorage. Do not use ReplicatedStorage for anything, ever. The reason being that ReplicatedStorage doesn't always replciate it's contents to your players, causing various bugs to occur. It's better to store them elsewhere and just clone them through a script.
Report Abuse
metalberlioz is not online. metalberlioz
Joined: 09 Jul 2011
Total Posts: 24
21 Dec 2013 02:05 AM
so how would I script it in order for it to give the aircraft tool to players when they sit on the seat?
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
21 Dec 2013 10:27 AM
use the childadded method on the vehicle seat and find the weld that appears. find the character through part1 in the weld and then use the getplayerfromcharacter method to find the player. then clone the tools to the player's backpack. same way when they jump off the vehicleseat. you can use the childremoving method and repeat steps 2 and 3.
Report Abuse
metalberlioz is not online. metalberlioz
Joined: 09 Jul 2011
Total Posts: 24
22 Dec 2013 06:07 AM
Ah ok, thanks for the help.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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