Projectile "Lag"

Hello people!

I have recently encountered a problem. I am fairly new to scripting and know the general basics of most functions on Roblox. However recently I have been attempting to create a cannon however this “Lag” appears whenever I fire the cannon, I have heard things about it being because I’m handling the cannonball/Projectile on the server. Any advice would be appreciated, as the rules say I don’t want code as I really want ways of going about this, does it mean I have to to put the cannon balls on the client? etc ( I also believe that this will help with new comers trying the same thing)

(I’m also new to the Dev Forum it would be great if you could tell me if I’m doing something wrong with my post :slight_smile:)

1 Like

Sorry if the video is a little laggy, but basically what is happening is that the cannon ball freezes for a millisecond before gaining movement (Using body forces and using clone() Again sorry!)

Can I see the script so I can find what going on?

Here

while true do

wait(10)

local newcannon = game:WaitForChild("ReplicatedStorage").CannonBall:Clone()

newcannon.Parent = workspace

newcannon.Position = workspace.Baseplate.Position + Vector3.new(0, 10, 0)

end

Try using Velocity or TweenService

1 Like

No, I am using velocities (That’s one of the body forces) and its something to do with server lag.

1 Like

Check out this post helped me a a lot!

1 Like