I want her float, her it that remains straight, how I make that?
local mouse = game.Players.LocalPlayer:GetMouse()
--mouse.Move:connect(function()
-- print(mouse.Hit.x)
--end)
mouse.Button1Up:connect(function()
if game.Players.LocalPlayer.Character.Humanoid.Health > 0 then
local bullet = Instance.new("Part", workspace.Debris)
bullet.FormFactor = "Custom"
bullet.TopSurface = 0
bullet.BottomSurface = 0
bullet.Anchored = false
bullet.CanCollide = false
bullet.Size = Vector3.new(0.1, 0.1, 1.8)
bullet.Material = 'Neon'
bullet.BrickColor = BrickColor.new('Daisy orange')
local BodyForce = Instance.new('BodyForce')
BodyForce.Parent = bullet
bullet.BodyForce.force = Vector3.new(mouse.Hit.p)
bullet.Name = game.Players.LocalPlayer.Name
if workspace:FindFirstChild('Debris') ~= nil then
bullet.Parent = workspace.Debris
else
local DebrisFolder = Instance.new('Folder', workspace)
DebrisFolder.Name = 'Debris'
bullet.Parent = DebrisFolder
end
bullet.Velocity = (mouse.Hit.p-bullet.Position).unit*100
bullet.CFrame = CFrame.new(game.Players.LocalPlayer.Character.AimPart.Position,mouse.Hit.p)
end
end)

1 comment
Also use the other force and experiment!