#Help with moving platform

1 messages · Page 1 of 1 (latest)

sharp lance
#

does anyone have a solution on how i could make it so when the platform moves my character doesnt slide around on it?

the platform itself moves around serverside, but of course is controlled clientside
i have already set the platforms friction all the way to the max
i have tried applying a velocity equal to the player equal that of the platform

the movement is done using alignposition and alignorientation
i want the player to be able to move whilst the platform itself is moving

https://gyazo.com/bc6c79ba897281fa76302b2d291cdf7b.mp4

this is the code for moving the platform

local Drone = workspace.Ignore:FindFirstChild("Drone_"..Plr.Name)
local Follow : Part = Drone:FindFirstChild("FollowPart")
if Follow and table.find(MovementMapping,Info.Input) then
    Follow.CFrame = Follow.CFrame * CFrame.new(ControlMapping[Info.Input] * 6)
end
if Follow and not table.find(MovementMapping,Info.Input) then
    Follow.CFrame = Follow.CFrame * CFrame.Angles(0,math.rad(-ControlMapping[Info.Input].Y * 10),0)
end

the controlmapping are just a bunch of vector3 corresponding to the held key
movementmapping is just for differentiating some buttons from others without having to add a lot of if statements

if you want to reach me please @ me

grave rapids
#

maybe try to add als moving the Root on the client side along with the followpart

sharp lance
#

thinking about it, considering that when youre piloting the drone you cant move i could just weld the player whilst hes controlling it and standing on it

wraith sleetBOT
#

studio** You are now Level 8! **studio

grave rapids
sharp lance
#

yea

#

i guess this could lead to a new problem though

#

which is that if there are other people on it as it is moving they will slide too