Part Lag On Touch

Hello, Again with another Football Issue. This time, The football tends to lag when touching something. For example in the clip I’m about to show. The football lags once touching the ground then goes back to normal. I don’t use any sort of special forces or anything that isn’t a property of the football itself. Why could this be happening?

Video:

Code:

local function Travel(Position1,Type)
		-- Check --
		if not Football:GetAttribute('InAir') then
			-- Update Attributes --
			Football:SetAttribute('InAir',true)
			Football:SetAttribute('Thrown',true)
			Football:SetAttribute('Power',Power)
			-- Fill In --
			Position1 = Position1
			-- Pre Code --
			local Position2 = Mouse
			local Direction = Position2 - Position1
			local Duration = math.log(1.001 + Direction.Magnitude * Football:GetAttribute('Power') / 100 * 100)
			local Force = Direction / Duration + Vector3.new(0,5 * Duration * 0.5,0)
			-- Update Football --
			Character['Torso'].FBConnect.Part0 = nil
			Football.Parent = workspace
			Football.Position = Position1
			Football.AssemblyLinearVelocity = Force
			-- Spiral Settings --
			local SpinRate = 0
			_G.CanSpiral = true
			-- Sprial Football --
			while _G.CanSpiral do
				task.wait()
				SpinRate += 0.20
				local BallCFrame = Football.CFrame.Position
				-- Check Travel Type --
				if Type == 'Kick' then
					Football.CFrame = CFrame.new(BallCFrame,BallCFrame + Football.Velocity) * CFrame.Angles(math.pi * SpinRate,math.pi/2,math.pi/2)
				elseif Type == 'Throw' then
					Football.CFrame = CFrame.new(BallCFrame,BallCFrame + Football.Velocity) * CFrame.Angles(math.pi * SpinRate,math.pi/2,math.pi * SpinRate)
				end
			end
		end
	end
3 Likes

Ping, the script looks fine. Your ping might be 400(ish) which is a 0.4 second delay, which is A LOT. The network recieve also seems to be slow. Perhaps a connection issue?

1 Like

If I do an actual Roblox Client. I’m on 70 ping and the server is on 70 ping also.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.