0 views0 copies0 likes
Moving Platform with Physics Constraints
Universal script
Copy it, then test it in your own Studio place.
Script code
26 lines ยท 1.0 KBlocal RunService = game:GetService("RunService")local part = workspace:WaitForChild("ShuttlePlatform")part.Anchored = falsepart:SetNetworkOwner(nil)local origin = part.Positionlocal frame = part.CFrame.Rotationlocal attachment = Instance.new("Attachment", part)local align = Instance.new("AlignPosition")align.Mode = Enum.PositionAlignmentMode.OneAttachmentalign.Attachment0 = attachmentalign.Position = originalign.MaxForce = math.hugealign.Responsiveness = 45align.Parent = part-- โฆopen Get script for the full sourceAbout this script
Make an unanchored Part named ShuttlePlatform and place it over a flat test area. This server script uses AlignPosition and AlignOrientation to shuttle the platform smoothly between its original position and a point 24 studs away. It keeps authority on the server and uses a smooth target curve. Test with your intended rider weight and tune the force and settling time for larger platforms.
Log in to leave a comment.
No comments yet
Be the first to share your thoughts!
Comments
Share what works, ask questions, or report an issue.