You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I’ve created a part that orbits around the map and i want it to be able to move players if they stay on it
-
What is the issue? The part just moves without moving the player so if the player stays still they just fall off
-
What solutions have you tried so far? I’ve looked almost everywhere but nothing just works
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local MovePart = script.Parent
local targetPart = game.Workspace.TargetPart
local rot = 0
local distance = 350
while true do
rot += 0.001
MovePart.CFrame = CFrame.new(targetPart.Position + Vector3.new(math.clamp(math.cos(rot), -1, 1), 0, math.clamp(math.sin(rot),-1, 1)), targetPart.Position)
MovePart.Position -= MovePart.CFrame.LookVector * -distance
wait(0.01)
end
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.