hi there, I need to find out how to make humanoid also float with moving part. as of right now the humanoid seems to be drowned in the moving part when this part moves up and down using below code.
local player = game.Players.LocalPlayer
local part = workspace.Part
part.Touched:Connect(function()
player.Character:SetPrimaryPartCFrame(player.Character.HumanoidRootPart.CFrame + (part.CFrame.LookVector * Vector3.new(0.05, 0, 0)))
end)
local brick=script.Parent
while wait(1) do
for I=1,5 do
brick.CFrame=brick.CFrame+Vector3.new(0,5,0)
wait(2)
end
wait(1)
for I=1,5 do
brick.CFrame=brick.CFrame+Vector3.new(0,-0.2,0)
wait()
end
end
any idea of how to make humanoid can stand on the moving part when it moved up?

1 comment
I already put that script for the brick and somehow the brick isn't moving. did I miss anything?