I'd like to roll a sphere around a room freely, but I'm really not sure how to. The idea is for it to quickly roll around randomly, and, upon hitting a wall, bounce to another direction. To start I tried to just change the CFrame, but this doesn't seem to work properly - since it just goes it just gets more and more teleported to only one direction:
-- NOTE: This script is placed as a direct child of said sphere
while script.Disabled==false do
script.Parent.CFrame = CFrame.new(script.Parent.CFrame.X+math.random(1,5),script.Parent.CFrame.Y,script.Parent.CFrame.Z+math.random(1,5))
wait(.2)
end
If you know how to help, please do so. Also, if this doesn't comply ScriptingHelper's rules, please forgive me - I wasn't sure if this is considered a request.
Thanks!

3 comments
Try making conveyor belt bricks near the walls and check on touch if the part got a humanoid or not.
Perhaps use BodyObjects?
Yes, it may works.