I’ve been looking around on other posts, and none have really answered my question directly. I’ve made a working moving platform that goes to and back to the original starting point, but the problem is when I walk onto it, it doesn’t let me stay on it and I fall off.
local TweenService = game:GetService("TweenService")
local TweenPart = script.Parent
local TweenInformation = TweenInfo.new(
18,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
-1,
true,
3
)
local posy = {
Position = script.Parent.Position + Vector3.new(-211,0,0)
}
local onion = TweenService:Create(TweenPart, TweenInformation, posy)
onion:Play()
I was wondering if anyone could help me figure out how to make my character come with the platform, instead of falling off once it moves.
i’ve tried to move the BodyPosition but nothing happens
yuh = script.Parent.Parent
original = Vector3.new(-1982, 147.5, 550)
while true do
script.Parent.BodyPosition.Position = yuh.End.Position
wait(5)
script.Parent.BodyPosition.Position = original
wait(5)
end
i’m just a bit confused, do i only need bodyposition or do i need the tween too? and also i’d appreciate some help on making the “bodyposition” work
Make sure the part isn’t inside or blocked by any other parts.You might need to up the force on the BodyPosition if the brick is to heavy to be moved by the current force.
Gonna guess that you’re using cframe and tweens (make sure the movement is mostly done on client while primary movements/things are done on server)
You can utilize this solution to help you “attach” the character to the platform.
I personally always use anchored bricks and cframes, I never trust unanchored things idk why. Probably because unanchored things are so easy to break at times