I've made a Gun and it's bullets are freezing at first for a second

Need help about gun!

video of the problem: https://gyazo.com/862985eee9a1851a2ee1fdf493d2d64d

I’ve made a gun and when i starting to shoot it with remote events it freezing at first and then starting to go. It’s annoying me. Please help with it. Here is the bullet’s creation script.

local statusofGun = require(script.Parent.StatusSettings)
local delta = require(game.ReplicatedStorage.Modules.DeltaBasicFramework)
local handle = script.Parent.Handle
local eventSender = script.Parent.EventSend
local muzzle = handle.Head

eventSender.OnServerEvent:Connect(function(player, order, x, y, z)
	if x ~= nil and order == "StartShooting" then
		local projectile = game.ReplicatedStorage.Modules.DeltaBasicFramework.Projectiles:FindFirstChild(statusofGun.ProjectileType):Clone()
		projectile.Parent = workspace
		projectile.Shooter.Value = player
		projectile.CFrame = muzzle.CFrame
		projectile.CFrame = CFrame.new(muzzle.Position, Vector3.new(x,y,z))
		projectile.Velocity = projectile.CFrame.LookVector * 300
1 Like

This is because the bullets are registered on the server and they also use physics. What I recommend is for you to register the position by using the mouse position on the client, then register that hit on the server, create the physics projectile on the client, then that projectile to the other clients