Hello! I’m currently creating a race system where a cloned Character rides a bike and it moves infinitely… The problem I’m facing is how could I force the cloned Character to ride the bike? I’m currently using a Local-Script (module to be specific) which means I can’t use the seat property nor able to move the Bike with the player… If anyone could help me with this problem then it’d be highly appreciated.
Code:
function module.StartRace(Stand)
if Running == false then
Running = true
local PlayerCharacter = Player.Character
PlayerCharacter.Archivable = true
Stand.Friend.Archivable = true
local CharacterClone = PlayerCharacter:Clone()
local NPCClone = Stand.NPC:Clone()
NPCClone.Parent = workspace.Race.Characters
NPCClone.Parent = workspace.Race.Characters
local PlayerBike = workspace.RedBike:Clone()
PlayerBike.Parent = workspace.Race.Characters
NPCClone.PrimaryPart.CFrame = workspace.Race.Objects.NPCPos.CFrame
PlayerBike:PivotTo(workspace.Race.Objects.PlayerPos.CFrame)
PlayerBike.Seat:Sit(PlayerCharacter.Humanoid) -- Doesn't work..
end
end