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: Getting a tool when your in a car.

Previous Thread :: Next Thread 
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
12 Oct 2013 10:29 PM
Well its not a car but lets just say it is.
Normal script

Anyway When I sit on the seat the script doesn't work, I sit on the seat and nothing happens.

Its spossed to give you a tool and change your position.

function onChildAdded(part)
if part.className == "Weld" then
local torso = part.Part1
if torso ~= nil then

local char = torso.Parent
local player = game.Players:GetPlayerFromCharacter(char)
if player ~= nil then
local hopper = script["Controls"]
hopper.Parent = player.Backpack
part.C0 = CFrame.new(0,-3.7,0)*CFrame.fromEulerAnglesXYZ(-(math.pi/2),0,0)
end
end
end
end
Report Abuse
FrozenSmite is not online. FrozenSmite
Joined: 17 Jul 2013
Total Posts: 2242
12 Oct 2013 10:31 PM
Wasnt this in a different thread?

♫♪ repeat wait() until game.Players.FrozenSmite.HasALife == true ♪♫
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
12 Oct 2013 10:32 PM
Yes but it got long and was posted a few hours ago. It also was harder to understand.
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
12 Oct 2013 10:38 PM
Sorry blocco, if you would please help me?
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
12 Oct 2013 11:34 PM
Please help?
Report Abuse
micke3212 is not online. micke3212
Joined: 24 Nov 2009
Total Posts: 3000
12 Oct 2013 11:37 PM
local hopper = script["Controls"]:clone()
--Forgot the :clone() alright?
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