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
 

Why won't this work?!

Previous Thread :: Next Thread 
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 06:41 PM


function onFire(gun)
local Hit, Pos = game.Workspace:FindPartOnRay(Ray.new(gun.Position, gun.CFrame.lookVector * 999))
local b = Instance.new("Part")
b.Parent = game.Workspace
b.Position = gun.Position:Lerp(Pos, 0.1)
b.formFactor = 0
b.Size = Vector3.new(1,.4,1)
b.BrickColor = BrickColor.new(194)
b.Name = "Rocket"
local bg = Instance.new("BodyGyro")
bg.cframe = CFrame.new(b.Position, Pos)
local bv = Instance.new("BodyVelocity")
bv.velocity = gun.CFrame.lookVector * 1000
bv.Parent = b
local M = script.Parent.Rockett:Clone()
M.Parent = b
local K = Instance.new("Smoke")
K.Parent = b
K.RiseVelocity = 10
local creator_tag = Instance.new("ObjectValue")
creator_tag.Value = script.Parent.Parent.Parent
creator_tag.Name = "creator"
creator_tag.Parent = b
M.Offset = Vector3.new(500,0,0)
b:Remove()
if Hit then
local e = Instance.new("Explosion")
e.Parent = workspace
e.Position = Pos
end
end


It won't simulate the movement of the Mesh

Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
08 Jul 2011 06:42 PM
It won't work because you made it... XD
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 06:44 PM
@flappy
You know, I'm starting to think that too. It seems whatever I make doesn't work for me.
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 06:48 PM
Thanks everyone. *dripping with sarcasm* *eats sarcasm burger*
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
08 Jul 2011 06:50 PM
Lol I was joking...
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 06:51 PM
Lawl, but I wasn't. So, now anyone?
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 06:54 PM
Anyone? Help? Bump?
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 07:06 PM
Bump
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 08:49 PM
Bump
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 08:58 PM
Bump
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
08 Jul 2011 08:59 PM
Look, I got you excited because I posted C: you though I was gonna help, but I didn't trololololol.
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 09:00 PM
Troller :
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
08 Jul 2011 09:01 PM
I will script a turret for my plane just to make you mad.
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 09:02 PM
Okay
Report Abuse
Spectrumz is not online. Spectrumz
Joined: 22 Mar 2011
Total Posts: 4338
08 Jul 2011 09:03 PM
@Spectrumw

Make sure it has lock on and all that stuff :)

Then post the link here.
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 09:04 PM
Spectrumz
You mind helping me, or are you just gonna troll this thread?
Report Abuse
Spectrumz is not online. Spectrumz
Joined: 22 Mar 2011
Total Posts: 4338
08 Jul 2011 09:06 PM
:FindPartOnray() is unfamiliar to me, I have no idea what it does.
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 09:07 PM
It does what it says. Finds the ray on a part. You familiar with offset of BlockMesh? Cause that's what I need help with.
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 09:13 PM
Bumpz
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 09:25 PM
Another Bump
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 09:27 PM
Halpz
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
08 Jul 2011 09:30 PM
HELPA
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
09 Jul 2011 08:14 AM
BWHAHAHA, I love Spectrumw, he trolls the threads as a joke so well! XD
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
09 Jul 2011 08:42 AM
He knows I need desperate help with this :P
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
09 Jul 2011 09:16 AM
Bawmp
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 2Go to page: [1], 2 Next
 
 
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