Pastebin
Retrouvez, créez et partagez vos snippets en temps réel.
Rechercher un Pastebin
Aucun paste trouvé.
Créer un paste
Pastebin
Blog
Cheate roblox
local Players = game:GetService("Players") local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local function onCharacterAdded(newCharacter) character = newCharacter humanoid = newCharacter:WaitForChild("Humanoid") end player.CharacterAdded:Connect(onCharacterAdded) local function syncCharacter() if not character or not humanoid then return end local rootPart = character:WaitForChild("HumanoidRootPart") local humanoidState = humanoid:GetState() if humanoidState == Enum.HumanoidStateType.Freefall then rootPart.Velocity = Vector3.new(0, 0, 0) end if rootPart.Position.Y < -100 then rootPart.CFrame = CFrame.new(rootPart.Position.X, 10, rootPart.Position.Z) end if not humanoid:FindFirstChild("Walking") then local animation = Instance.new("Animation") animation.AnimationId = "rbxassetid://180435561" -- ID de l'animation de marche local animationTrack = humanoid:LoadAnimation(animation) animationTrack:Play() end end RunService.RenderStepped:Connect(syncCharacter) -Envoi des données de synchronisation au serveur local function sendSyncData() local syncData = { Position = character.HumanoidRootPart.Position, Velocity = character.HumanoidRootPart.Velocity, AnimationState = humanoid:GetState() } ReplicatedStorag
Créé il y a 1 mois.