Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago
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

Log in to vote
0
Answered by
Rare_tendo 3000 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

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
0
what do you mean by random vector do I get the vector where the part was and where it moved to? YessAsAlways -1 — 5y
0
I'm new sorry YessAsAlways -1 — 5y
Ad

Answer this question