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 )
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!)
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