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 » Roblox » Suggestions & Ideas
Home Search
 

Re: Raycast fix.

Previous Thread :: Next Thread 
KingEpic5 is not online. KingEpic5
Joined: 26 May 2011
Total Posts: 5675
13 Oct 2012 02:15 AM
The problem is its not shooting.

Heres the script (a Little bit of it otherwise I will get a error.)

ToolName=""
ClipSize=12
ReloadTime=0.5
Firerate=.1
MinSpread=0.1
MaxSpread=0.2
SpreadRate=0
BaseDamage=20
automatic=true
burst=false
shot=false --Shotgun
BarrlePos=Vector3.new(0,0,0)
Cursors={"rbxasset://textures\\GunCursor.png"}
ReloadCursor="rbxasset://textures\\GunWaitCursor.png"

barrel_1 = script.Parent:findFirstChild("barrelpos1") or script.Parent.Handle
barrel_2 = script.Parent:findFirstChild("barrelpos2") or script.Parent.Handle
double = false --Double Wielded
doublemode = 1 -- 1 is alternating, 2 is both

if not game.Lighting:findFirstChild("BulletTexture") then
p = Instance.new("Part")
p.Parent = game.Lighting
p.Name = "BulletTexture"
p.CanCollide = false
p.formFactor = "Custom"
p.Size = Vector3.new(1,0.1,1)
p.Transparency = 1
g = Instance.new("SpecialMesh")
g.Parent = p
end

-------------------------------------
Tool = script.Parent

p = Instance.new("Part")
p.Parent = game.Lighting
p.Name = "BulletTexture"
p.CanCollide = false
p.formFactor = "Custom"
p.Size = Vector3.new(1,0.1,1)
p.Transparency = 1
g = Instance.new("SpecialMesh")
g.Parent = p

GuiEffect = "Sine"

equiped=false
dw = false
sp=script.Parent
RayLength=1000
Spread=.15
enabled=true
reloading=false
down=false
r=game:service("RunService")
last=0
last2=0
last3=0
last4=0
last5=0
last6=0
UseDouble = false
Bullet=Instance.new("Part")
Bullet.Name="Bullet"
Bullet.BrickColor=BrickColor.new("Really black")
Bullet.Anchored=true
Bullet.CanCollide=false
Bullet.Locked=true
Bullet.Size=Vector3.new(1,1,1)
Bullet.Transparency=0
Bullet.formFactor=0
Bullet.TopSurface=0
Bullet.BottomSurface=0
mesh=Instance.new("SpecialMesh")
mesh.Parent=Bullet
mesh.MeshType="Brick"
mesh.Name="Mesh"
mesh.Scale=Vector3.new(.15,.15,1)
Report Abuse
jamkid12 is not online. jamkid12
Joined: 21 Mar 2010
Total Posts: 17460
13 Oct 2012 02:21 AM
Wrong forum.
Report Abuse
ninjawarrior25 is not online. ninjawarrior25
Joined: 29 Apr 2010
Total Posts: 671
13 Oct 2012 03:50 AM
Yeah wrong forum and i don't see the error you were talking about.
Report Abuse
JakieMcCool is not online. JakieMcCool
Joined: 07 Feb 2012
Total Posts: 3298
13 Oct 2012 04:09 AM
Post it in Scripting Helpers because this is the wrong forum.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • 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