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
 

whats wrong with this?

Previous Thread :: Next Thread 
cybris is not online. cybris
Joined: 01 Mar 2008
Total Posts: 2424
07 Jul 2009 10:33 AM
output says nothing....keep in mind this is in a hopperbin...

function onKeyDown(key)
if key:lower() == "f" then

missile = Instance.new("Part")
missile.Position = script.Parent.Parent.Chest.RightGun.Position
missile.Size = Vector3.new(1,1,1)
missile.Velocity = v * 300
missile.BrickColor = BrickColor.new("Black")
missile.Name = "Shell"

local new_script = script.Parent.Projectile:clone()
new_script.Disabled = false
new_script.Parent = missile
end

function onSelected(mouse)
mouse.KeyDown:connect(onKeyDown)
end

script.Parent.Selected:connect(onSelected)
Report Abuse
cybris is not online. cybris
Joined: 01 Mar 2008
Total Posts: 2424
07 Jul 2009 10:34 AM
also, Chest is a model inside the player that has bricks in it and one is named RightGun .....it is a suit model
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