local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local movel = 0.1 local running = true local function fling() while running do RunService.Heartbeat:Wait() local character = player.Character local hrp = character and character:FindFirstChild("HumanoidRootPart") if hrp then local vel = hrp.Velocity hrp.Velocity = vel * 10000 + Vector3.new(0, 10000, 0) RunService.RenderStepped:Wait() hrp.Velocity = vel RunService.Stepped:Wait() hrp.Velocity = vel + Vector3.new(0, movel, 0) movel = -movel end end end task.spawn(fling) local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local MOVE_ANIMATION_ID = "rbxassetid://252557606" local TOUCH_ANIMATION_ID = "rbxassetid://54584713" local TOUCH_SOUND_ID = "rbxassetid://566593606" local character local humanoid local animator local moveTrack local touchTrack local touchSound local touchCooldown = false local touchToken = 0 local function setupCharacter(char) character = char humanoid = char:WaitForChild("Humanoid") if humanoid.RigType ~= Enum.HumanoidRigType.R6 then warn("R6 ONLY!") return end animator = humanoid:WaitForChild("Animator") humanoid.WalkSpeed = 30 local moveAnim = Instance.new("Animation") moveAnim.AnimationId = MOVE_ANIMATION_ID moveTrack = animator:LoadAnimation(moveAnim) moveTrack.Priority = Enum.AnimationPriority.Action moveTrack.Looped = true local touchAnim = Instance.new("Animation") touchAnim.AnimationId = TOUCH_ANIMATION_ID touchTrack = animator:LoadAnimation(touchAnim) touchTrack.Priority = Enum.AnimationPriority.Action2 touchTrack.Looped = false touchSound = Instance.new("Sound") touchSound.SoundId = TOUCH_SOUND_ID touchSound.Volume = 1 touchSound.Parent = char:WaitForChild("HumanoidRootPart") touchCooldown = false touchToken = 0 local function checkTouch(otherPart) if not otherPart then return end local otherCharacter = otherPart:FindFirstAncestorOfClass("Model") if not otherCharacter or otherCharacter == character then return end local otherHumanoid = otherCharacter:FindFirstChildOfClass("Humanoid") if not otherHumanoid then return end if not Players:GetPlayerFromCharacter(otherCharacter) then return end if touchCooldown then return end touchCooldown = true touchToken += 1 local currentToken = touchToken touchTrack:Play(0.05) touchSound:Stop() touchSound.TimePosition = 0 touchSound:Play() task.delay(0.5, function() if currentToken ~= touchToken then return end if touchTrack and touchTrack.IsPlaying then touchTrack:Stop(0.05) end end) task.delay(0.5, function() if currentToken == touchToken then touchCooldown = false end end) end for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") then part.Touched:Connect(checkTouch) end end char.DescendantAdded:Connect(function(part) if part:IsA("BasePart") then part.Touched:Connect(checkTouch) end end) end player.CharacterAdded:Connect(setupCharacter) if player.Character then task.spawn(setupCharacter, player.Character) end RunService.Heartbeat:Connect(function() if not humanoid or humanoid.Health <= 0 then return end humanoid.WalkSpeed = 30 if not moveTrack or not touchTrack then return end if humanoid.MoveDirection.Magnitude > 0.05 then if not moveTrack.IsPlaying then moveTrack:Play(0.1) end else if moveTrack.IsPlaying then moveTrack:Stop(0.1) end end end)