Advertisement
MayWeEnjoy

suck r6 script

Dec 23rd, 2024 (edited)
138,372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.04 KB | None | 0 0
  1. -- GUI Setup
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local MainFrame = Instance.new("Frame")
  4. local TitleBar = Instance.new("Frame")
  5. local Title = Instance.new("TextLabel")
  6. local CloseButton = Instance.new("TextButton")
  7. local MinimizeButton = Instance.new("TextButton")
  8. local UsernameBox = Instance.new("TextBox")
  9. local ToggleButton = Instance.new("TextButton")
  10.  
  11. -- GUI Properties
  12. ScreenGui.Name = "GetSuckedGUI"
  13. ScreenGui.Parent = game.CoreGui
  14. ScreenGui.ResetOnSpawn = false
  15.  
  16. -- Main Frame
  17. MainFrame.Name = "MainFrame"
  18. MainFrame.Parent = ScreenGui
  19. MainFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  20. MainFrame.Size = UDim2.new(0, 300, 0, 150)
  21. MainFrame.Position = UDim2.new(0.5, -150, 0.5, -75)
  22. MainFrame.Active = true
  23. MainFrame.Draggable = true
  24. MainFrame.ClipsDescendants = true
  25. local mainCorner = Instance.new("UICorner", MainFrame)
  26. mainCorner.CornerRadius = UDim.new(0, 15)
  27.  
  28. -- Title Bar
  29. TitleBar.Name = "TitleBar"
  30. TitleBar.Parent = MainFrame
  31. TitleBar.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  32. TitleBar.Size = UDim2.new(1, 0, 0, 30)
  33. local titleBarCorner = Instance.new("UICorner", TitleBar)
  34. titleBarCorner.CornerRadius = UDim.new(0, 15)
  35.  
  36. -- Title Label
  37. Title.Name = "Title"
  38. Title.Parent = TitleBar
  39. Title.BackgroundTransparency = 1
  40. Title.Size = UDim2.new(1, -60, 1, 0)
  41. Title.Font = Enum.Font.GothamBold
  42. Title.Text = "Suck"
  43. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  44. Title.TextSize = 14
  45. Title.TextXAlignment = Enum.TextXAlignment.Left
  46. Title.Position = UDim2.new(0, 10, 0, 0)
  47.  
  48. -- Close Button
  49. CloseButton.Name = "CloseButton"
  50. CloseButton.Parent = TitleBar
  51. CloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  52. CloseButton.Size = UDim2.new(0, 30, 1, 0)
  53. CloseButton.Position = UDim2.new(1, -30, 0, 0)
  54. CloseButton.Font = Enum.Font.GothamBold
  55. CloseButton.Text = "X"
  56. CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  57. CloseButton.TextSize = 14
  58. local closeButtonCorner = Instance.new("UICorner", CloseButton)
  59. closeButtonCorner.CornerRadius = UDim.new(0, 15)
  60.  
  61. -- Minimize Button
  62. MinimizeButton.Name = "MinimizeButton"
  63. MinimizeButton.Parent = TitleBar
  64. MinimizeButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  65. MinimizeButton.Size = UDim2.new(0, 30, 1, 0)
  66. MinimizeButton.Position = UDim2.new(1, -60, 0, 0)
  67. MinimizeButton.Font = Enum.Font.GothamBold
  68. MinimizeButton.Text = "-"
  69. MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  70. MinimizeButton.TextSize = 14
  71. local minimizeButtonCorner = Instance.new("UICorner", MinimizeButton)
  72. minimizeButtonCorner.CornerRadius = UDim.new(0, 15)
  73.  
  74. -- Username Input Box
  75. UsernameBox.Name = "UsernameBox"
  76. UsernameBox.Parent = MainFrame
  77. UsernameBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  78. UsernameBox.Size = UDim2.new(0, 260, 0, 30)
  79. UsernameBox.Position = UDim2.new(0.5, -130, 0.5, -20)
  80. UsernameBox.Font = Enum.Font.Gotham
  81. UsernameBox.PlaceholderText = "Target's Username"
  82. UsernameBox.Text = ""
  83. UsernameBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  84. UsernameBox.TextSize = 14
  85. local usernameBoxCorner = Instance.new("UICorner", UsernameBox)
  86. usernameBoxCorner.CornerRadius = UDim.new(0, 15)
  87.  
  88. -- Toggle Button
  89. ToggleButton.Name = "ToggleButton"
  90. ToggleButton.Parent = MainFrame
  91. ToggleButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  92. ToggleButton.Size = UDim2.new(0, 260, 0, 30)
  93. ToggleButton.Position = UDim2.new(0.5, -130, 0.5, 20)
  94. ToggleButton.Font = Enum.Font.GothamBold
  95. ToggleButton.Text = "Start"
  96. ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  97. ToggleButton.TextSize = 14
  98. local toggleButtonCorner = Instance.new("UICorner", ToggleButton)
  99. toggleButtonCorner.CornerRadius = UDim.new(0, 15)
  100.  
  101. -- GUI Logic
  102. local minimized = false
  103. local running = false
  104. local originalGravity
  105. local attachmentLoop
  106. local animTrack
  107. local targetPlayer
  108.  
  109. MinimizeButton.MouseButton1Click:Connect(function()
  110. minimized = not minimized
  111. MainFrame.Size = minimized and UDim2.new(0, 300, 0, 30) or UDim2.new(0, 300, 0, 150)
  112. end)
  113.  
  114. CloseButton.MouseButton1Click:Connect(function()
  115. ScreenGui:Destroy()
  116. end)
  117.  
  118. ToggleButton.MouseButton1Click:Connect(function()
  119. if not running then
  120. ToggleButton.Text = "Stop"
  121. ToggleButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  122. running = true
  123.  
  124. local victim = UsernameBox.Text:lower()
  125.  
  126. -- Find target player by matching either username or display name
  127. for _, player in pairs(game.Players:GetPlayers()) do
  128. if string.find(player.Name:lower(), victim) or string.find(player.DisplayName:lower(), victim) then
  129. targetPlayer = player
  130. break
  131. end
  132. end
  133.  
  134. if targetPlayer then
  135. local localPlayer = game.Players.LocalPlayer
  136. local humanoidRootPart = localPlayer.Character:FindFirstChild("HumanoidRootPart")
  137. local targetRootPart = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
  138.  
  139. -- Find the target's torso or lower body part (Pelvis area)
  140. local targetTorso = targetPlayer.Character:FindFirstChild("LowerTorso") or targetPlayer.Character:FindFirstChild("UpperTorso")
  141.  
  142. if humanoidRootPart and targetRootPart and targetTorso then
  143. originalGravity = workspace.Gravity
  144. workspace.Gravity = 0 -- Set gravity to 0 to keep the character floating
  145.  
  146. -- Play animation
  147. local animationId = "rbxassetid://178130996" -- Replace with valid animation ID
  148. local animation = Instance.new('Animation')
  149. animation.AnimationId = animationId
  150.  
  151. local humanoid = localPlayer.Character:FindFirstChild("Humanoid")
  152. if humanoid then
  153. animTrack = humanoid:LoadAnimation(animation)
  154. animTrack:Play()
  155. animTrack:AdjustSpeed(1)
  156. end
  157.  
  158. -- Attach the local player character to the target character's torso (this does not loop)
  159. attachmentLoop = game:GetService("RunService").Heartbeat:Connect(function()
  160. if running then
  161. -- Update the local player's position to be in front of the target's torso
  162. humanoidRootPart.CFrame = targetTorso.CFrame * CFrame.new(0, -2.3, -1.0) * CFrame.Angles(0, math.pi, 0)
  163. end
  164. end)
  165. end
  166. end
  167. else
  168. -- Stop the process and everything running
  169. ToggleButton.Text = "Start"
  170. ToggleButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  171. running = false
  172.  
  173. -- Restore gravity
  174. if originalGravity then
  175. workspace.Gravity = originalGravity
  176. end
  177.  
  178. -- Disconnect loops and stop animations
  179. if attachmentLoop then
  180. attachmentLoop:Disconnect() -- Disconnect the attachment loop
  181. attachmentLoop = nil -- Clear the loop variable to prevent accidental access
  182. end
  183. if animTrack then
  184. animTrack:Stop() -- Stop the animation
  185. animTrack = nil -- Clear the animation variable
  186. end
  187. end
  188. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement