Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. local Bullet = Instance.new("Part")
  2. Bullet.BrickColor = BrickColor.new("Daisy orange")
  3. Bullet.Material = "Neon"
  4. Bullet.Transparency = 0.5
  5. Bullet.Size = Vector3.new(0.2,3.6,0.5)
  6. Bullet.Parent = tool.Tip
  7. local v = Instance.new("SpecialMesh", Bullet)
  8. v.MeshId = "http://www.roblox.com/Asset/?id=10207677"
  9. v.Scale = Vector3.new(0.2,0.2,0.2)
  10. Bullet.Name = "Bullet"
  11.  
  12. local distance = (tool.Tip.CFrame.p - position).magnitude
  13. Bullet.CFrame = CFrame.new(tool.Tip.CFrame.p, position) * CFrame.new(0, 0, -distance / 1)
  14. Bullet.Roation = Vector3.new(-90, 0 -90)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement