Greetings, Developers!
Today I was trying to make a part keep moving constantly using BodyForce just like Tower of Hell: robloxapp-20200928-2042557.wmv (5.6 MB)
script.Parent.Touched:Connect(function(hit)
local Players = game.Players:GetPlayerFromCharacter(hit.Parent)
if Players then
while true do
script.Parent.BodyForce.Force = Vector3.new(-164.98, 0.5, -0.17)
wait(1)
script.Parent.BodyForce.Force = Vector3.new(-164.98, 0.5, -21.51)
end
end
end)
Did you touch the part? if not do you want it to repeat even though you diddn’t touch it. If you havn’t been touching the part you should really touch the part.
while true do
script.Parent.BodyForce.Force = Vector3.new(-164.98, 0.5, -0.17)
wait(1)
script.Parent.BodyForce.Force = Vector3.new(-164.98, 0.5, -21.51)
end