Instead you could just do a while true do task.wait() end
game:GetService("RunService").Stepped:Connect(function()
for _, v in pairs(game.Workspace.forcefield:GetChildren()) do
if v:IsA("MeshPart") then
v.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.Angles(math.sin(os.clock())*2, math.sin(os.clock())*2, math.cos(os.clock())*2)
end
end
end)
Try this, the movement is pretty sporadic but smooth.
Works on either Server or Client.
Recommend you anchor the forcefield parts.
1 Like
instead of using position, use CFrame
i had an issue with using position in the past where it glitched me, and CFrame fixed it
Its smooth now but its still going crazy even if the parts are anchored
anything else is fixed except for this
nvm its fixed I just needed to change a number. Thanks for the help! I will modify it a bit
1 Like