Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Need help with BodyVelocity? S O S!

Asked by 9 years ago
01Player = game.Players.LocalPlayer
02Mouse = Player:GetMouse()
03run = game:GetService('RunService')
04Character = Player.Character
05enabled = false
06function sword(ky)
07    if ky == "q" then
08        enabled1 = true
09 
10        Part = Instance.new("Part", Character)
11        Part.FormFactor = "Custom"
12        Part.Size = Vector3.new(1.05, 5.48, 1.15)
13        Part.CanCollide = false
14        Part.BrickColor = BrickColor.new("Black")
15        Weld = Instance.new("Weld", Character)
View all 60 lines...

Equips the bazooka when q is pressed, shoots when r is pressed. The first shots works, but when I move around, it stops working and the bullets spawns infront of me... Just test and see and u will understand what I mean..

Ty in advance!

Answer this question