Passer au playerPasser au contenu principal
  • il y a 2 mois
Pour avoir une voiture :
Collez ce code dans un code bloc :
api.giveItem(myId,"INTERNAL_MESH_Kart",1,{customDisplayName: "Car"})

Puis collez ça dans le world code
const speed = 2;
onPlayerClick=(playerId,wasAltClick)=>{try{if("INTERNAL_MESH_Kart"===api.getHeldItem(playerId)?.name)"undefined"==typeof Riding&&(Riding={}),Riding[playerId]?(Riding[playerId]=!1,api.setPlayerPose(playerId,"standing"),api.updateEntityNodeMeshAttachment(playerId,"TorsoNode",null),api.setClientOption(playerId,"speedMultiplier",1)):(Riding[playerId]=!0,api.setPlayerPose(playerId,"driving"),api.updateEntityNodeMeshAttachment(playerId,"TorsoNode","BloxdBlock",{blockName:"INTERNAL_MESH_Kart",size:10,meshOffset:[0,0,0]},[0,-1,-.2],[6.28,3.15,0]),api.setClientOption(playerId,"speedMultiplier",speed))}catch(e){}};

Recommandations