Moving part isnt moving players

You can write your topic however you want, but you need to answer these questions:

  1. 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

  2. What is the issue? The part just moves without moving the player so if the player stays still they just fall off

  3. 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.

You could change the [CustomPhysicalProperties] for the part what is moving to add more friction.(BasePart | Documentation - Roblox Creator Hub)

This could work!

Not the best sounding solution, but you could somehow add a weld to the HumanoidRootPart and the spinning part

local weld = Instance.new("WeldConstraint", part)
weld.Part0 = part
weld.Part1 = char.HumanoidRootPart

part.TouchEnded:Connect(function()
    weld:Destroy()
end)

Hope this helps in some way!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.