I have created a small moving platform using TweenService and also adding velocity to the part when it moves so that the player should move with it. The problem is when I use an avatar with any Rthro part, it doesnt work.
For what its is worth, this is how I am doing the tween and applying the velocity
while true do
for i,v in pairs (destinations) do
local tween = tweenService:Create(mover, tweenInfo, {Position = destinations[i]})
local direction = (v - mover.Position).unit
local velocity = (direction*(v - mover.Position).magnitude)/model.MoveSpeed.Value
mover.Velocity = velocity
tween:Play()
wait(model.MoveSpeed.Value)
mover.Velocity = Vector3.new(0,0,0)
print(i,v)
wait(model.DestinationPause.Value)
end
end
Very confused how this can happen. There are no other scripts n the game that can affect the player, and nothing specific for my player to explain why the behavior would be different for different players.
Thanks in advance for looking into this
EDITS: I discovered it was because Rthro avatar after posting so i midified this post to reflect that new context
yes i discovered it was because of rthro and so there i changed the title of this support thread to figure out why, since i want my game to work with rthro.Thanks!
You should use something like “StarterCharacter”. It will change player’s character to whatever you want. To do this simply just clone a model of a character and name it “StarterCharacter” then put it in the “StarterPlayer” folder.
I’m not sure that there is a direct fix for this, but maybe you could weld the character to the platform until the player tells it to move/jump at which point you would break the weld so that the character could carry out this action and then bring it back so that the character would be once again welded to the platform when it was back on the platform, unless it jumped off the platform in which case you wouldn’t weld it again