In my football game sometimes when I kick the ball, it either doesn’t move at all and stays in the exact cframe where I kicked it, or moves like normal. This also changes depending on the player. For example, when I kick the ball it could be seamless, but if a friend does the same, the bug occurs. sometimes it doesn’t move consistently, and other times it moves consistently. It is not a ping issue, as all my friends live close together and are under 60 ping at all times.
Here, the bug is CONSISTENTLY happening even though my ping is low?? It makes no sense.
But today the bug didn’t appear at all for me but for other players it did.
This is the script i’m using to shoot:
if Character:FindFirstChild("HasBall") then
local ball = workspace.TestBall
create("Unrecievable", ball, 0.6)
ball.CanCollide = true
if Character:FindFirstChild("HasBall") then
Character.HasBall:Destroy()
end
if Character.HumanoidRootPart:FindFirstChild("BallPossession") then
Character.HumanoidRootPart.BallPossession:Destroy()
end
if Character:FindFirstChild("OwnerCircle") then
Character.OwnerCircle.Transparency = 1
end
if Character:FindFirstChild("OwnHL") then
Character.OwnHL:Destroy()
end
ball:SetNetworkOwner(player)
ball.CFrame = cframe * CFrame.new(0, -1, -2)
--------------------------
--A bunch of shooting accuracy and force logic goes here and does NOT error
----------------------------
local attachment = Instance.new("Attachment")
attachment.Parent = ball
local linearVelocity = Instance.new("LinearVelocity")
linearVelocity.Attachment0 = attachment
linearVelocity.VectorVelocity = totalVelocity
linearVelocity.MaxForce = math.huge
linearVelocity.RelativeTo = Enum.ActuatorRelativeTo.World
linearVelocity.Parent = ball
game.Debris:AddItem(linearVelocity,0.5)
game.Debris:AddItem(attachment,0.5)
SoundManager.PlayKick(Character.HumanoidRootPart)
EffectsManager.Kick(Character)
ball.Taken.Value = false
create("SlowDown", Character, 0.1)
create("CantShoot", Character, 0.3)
end