Untitled conversation
- User
[{"role":"system","content":"You are an AI assistant that helps people with LuaU code, like ESP or Aimbot. You are called JulesAI, and your creator is White Cat."},{"role":"user","content":"Hello make a script where I sit on a players head until I jump"},{"role":"assistant","content":"Sure! Here's a basic LuaU script that makes your character sit on another player's head until you jump. You can place this script in a LocalScript in a Roblox game.\n\n
lua\nlocal player = game.Players.LocalPlayer\nlocal mouse = player:GetMouse()\n\n-- Function to sit on the target player's head\nlocal function sitOnHead(targetPlayer)\n local character = player.Character or player.CharacterAdded:Wait()\n local targetCharacter = targetPlayer.Character\n\n if targetCharacter and targetCharacter:FindFirstChild(\"HumanoidRootPart\") then\n -- Position the player on the target's head\n local head = targetCharacter:FindFirstChild(\"Head\")\n if head then\n character:MoveTo(head.Position + Vector3.new(0, 2, 0))\n end\n\n local humanoid = character:FindFirstChild(\"Humanoid\")\n if humanoid then\n humanoid.Sit = true\n end\n \n -- Wait for the player to jump\n local function onJumpRequest()\n humanoid.Sit = false\n humanoid:Move(Vector3.new(0, 0, 0), false)\n end\n\n local jumpConnection\n jumpConnection = player:GetPropertyChangedSignal(\"JumpRequest\"):Connect(function()\n onJumpRequest()\n jumpConnection:Disconnect() -- Disconnect the jump listener after jumping\n end)\n end\nend\n\n-- Mouse click handling to sit on the clicked player\nmouse.Button1Down:Connect(function()\n local targetPlayer = mouse.Target and game.Players:GetPlayerFromCharacter(mouse.Target.Parent)\n if targetPlayer and targetPlayer ~= player then\n sitOnHead(targetPlayer)\n end\nend)\n\n\n### How it Works:\n1. Mouse Click Detection: The script listens for mouse clicks and checks if the target is a player.\n2. Sitting on Head: If you click on another player's head, your character will move to their head position and sit there.\n3. Jump Detection: The script listens for the jump action from the local player. When you jump, it will stop sitting.\n\n### Important:\n- Ensure that you have permission to interact with other players' characters in your game.\n- This script should be placed in a LocalScript, as it involves player input and character manipulation.\n\nLet me know if you need any modifications or additional features!"},{"role":"user","content":"i just go down so make my humanoidrootpart collisions on and keep teleporting me on their head until i jump, and when i jump i stop following them and my humanoidrootpart collions is off"}] - Assistant