Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

The platform is moving but the character isn't moving with the platform?

local model = script.Parent.Parent
local platform = model.platform
local start = model.Start
local finish = model.Finish
local bodyPos = platform.BodyPosition
local time = 1 

while true do
	bodyPos.position = start.Position
	wait(time)
	bodyPos.position = finish.Position
	wait(time)
	end

1 answer

✓ Accepted answer

Try changing the Velocity of the platform.

local model = script.Parent.Parent
local platform = model.platform
local start = model.Start
local finish = model.Finish
local bodyPos = platform.BodyPosition
local time = 1 

while true do
    bodyPos.position = start.Position
    platform.Velocity = (start.Position - platform.Position)
    wait(time)
    bodyPos.position = finish.Position
    platform.Velocity = (finish.Position - platform.Position)
    wait(time)
    platform.Velocity = Vector3.new()
    end

2 comments

0

what do you mean by random vector do I get the vector where the part was and where it moved to?

0

I'm new sorry

This discussion is preserved as it was. New answers, comments, and votes are closed.