Whenever I fire my weapon, the block comes up, and then there is like a .2 second delay before the velocity kicks in.
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(plr,tool,handle,mouseHit) local l = Instance.new("Part",workspace) l.BrickColor = BrickColor.new("Toothpaste") l.Size = Vector3.new(1,1,3) l.CanCollide = false l.Anchored = false l.CFrame = handle.CFrame l.CFrame = CFrame.new(l.Position,mouseHit.p) local v = Instance.new("BodyVelocity",l) v.Velocity = l.CFrame.lookVector * 100 v.MaxForce = Vector3.new(math.huge,math.huge,math.huge) end)
You don't want to use the second parameter of Instance.new() because it takes longer.
You want to first set the properties and then parent it.
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(plr,tool,handle,mouseHit) local l = Instance.new("Part") l.BrickColor = BrickColor.new("Toothpaste") l.Size = Vector3.new(1,1,3) l.CanCollide = false l.Anchored = false l.CFrame = handle.CFrame l.CFrame = CFrame.new(l.Position,mouseHit.p) local v = Instance.new("BodyVelocity") v.Velocity = l.CFrame.lookVector * 100 v.MaxForce = Vector3.new(math.huge,math.huge,math.huge) v.Parent=l l.Parent=workspace end)
I mean just look at this pic, noticeable difference.