|
| 13 Dec 2015 11:34 AM |
I have decided to take a look at guns, and I am a bit confused with the script I am making. Here it is:
local tool = script.Parent tool.Equipped:connect(function(equipped) local player = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.Button1Down:conect(function(clicked) local bullet = Instance.new("Part", tool) bullet.FormFactor = Enum.FormFactor.Custom bullet.Shape = "Ball" bullet.Size = Vector3.new(0.2, 0.2, 0.2) bullet.CFrame = tool.Flame.CFrame + CFrame.new(0, 0, 0.8) local push = Instance.new("BodyVelocity") --push. end) end) |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2015 11:36 AM |
screw bodyvelocity
use raycast |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Dec 2015 11:38 AM |
| http://wiki.roblox.com/index.php/Raycasting |
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 13 Dec 2015 11:41 AM |
body velocity was the old school way of doing it
use raycast
is is faster
it's cooler
and gives you more opportunity because of all the things raycast allows
it was 105 times faster than the fastest known user created algorithm
pls lern raycast, is vry gud at gunz |
|
|
| Report Abuse |
|
|