Kenken_I

Untitled

Jul 15th, 2025 (edited)
638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.86 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local RunService = game:GetService("RunService")
  3. local TeleportService = game:GetService("TeleportService")
  4.  
  5. local player = Players.LocalPlayer
  6. local char = player.Character or player.CharacterAdded:Wait()
  7. local hrp = char:WaitForChild("HumanoidRootPart")
  8. local humanoid = char:WaitForChild("Humanoid")
  9. local random = Random.new()
  10.  
  11. local teleporting = false
  12. local void = CFrame.new(0, -3.4028235e+38, 0)
  13.  
  14. -- Reassign on respawn
  15. player.CharacterAdded:Connect(function(c)
  16. char = c
  17. hrp = c:WaitForChild("HumanoidRootPart")
  18. humanoid = c:WaitForChild("Humanoid")
  19. end)
  20.  
  21. -- Ping updater
  22. local pingMS = 50
  23. task.spawn(function()
  24. while true do
  25. pingMS = math.clamp(player:GetNetworkPing() * 1000, 20, 300)
  26. RunService.Heartbeat:Wait()
  27. end
  28. end)
  29.  
  30. -- TP logic
  31. local function TP(pos)
  32. if not hrp or teleporting then return end
  33. teleporting = true
  34. hrp.CFrame = pos + Vector3.new(
  35. random:NextNumber(-0.0001, 0.0001),
  36. random:NextNumber(-0.0001, 0.0001),
  37. random:NextNumber(-0.0001, 0.0001)
  38. )
  39. RunService.Heartbeat:Wait()
  40. teleporting = false
  41. end
  42.  
  43. local function FindDelivery()
  44. local plots = workspace:FindFirstChild("Plots")
  45. if not plots then return nil end
  46. for _, plot in pairs(plots:GetChildren()) do
  47. local sign = plot:FindFirstChild("PlotSign")
  48. if sign then
  49. local yourBase = sign:FindFirstChild("YourBase")
  50. if yourBase and yourBase.Enabled then
  51. return plot:FindFirstChild("DeliveryHitbox")
  52. end
  53. end
  54. end
  55. end
  56.  
  57. -- Ping-scaled 4s teleport
  58. local function DeliverBrainrot()
  59. if not hrp then return end
  60. local hitbox = FindDelivery()
  61. if not hitbox then warn("DeliveryHitbox not found.") return end
  62. local target = hitbox.CFrame * CFrame.new(0, -3, 0)
  63.  
  64. local duration = 4 -- seconds
  65. local delayPerStep = pingMS / 1000 -- convert ms to seconds
  66. local steps = math.max(5, math.floor(duration / delayPerStep)) -- more steps for high ping
  67.  
  68. for i = 1, steps do TP(target) end
  69. for _ = 1, 2 do TP(void) end
  70. for i = 1, math.floor(steps / 16) do TP(target) end
  71.  
  72. task.wait(0.0001)
  73. local distance = (hrp.Position - target.Position).Magnitude
  74. if distance <= 1999 then
  75. print("[Rainware]: Delivery teleport successful")
  76. else
  77. warn("[Rainware]: Delivery teleport failed: distance = " .. distance)
  78. end
  79. end
  80.  
  81. -- Death = rejoin after 10s
  82. humanoid.HealthChanged:Connect(function(h)
  83. if h < 5 then
  84. warn("[PERM DEATH] Rejoining in 10s")
  85. game.StarterGui:SetCore("SendNotification", {
  86. Title = "PERM DEATH",
  87. Text = "Rejoining in 10 seconds...",
  88. Duration = 5
  89. })
  90. task.wait(10)
  91. TeleportService:Teleport(game.PlaceId, player)
  92. end
  93. end)
  94.  
  95. -- === GUI ===
  96. local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  97. gui.Name = "KensTPGui"
  98. gui.ResetOnSpawn = false
  99.  
  100. local frame = Instance.new("Frame", gui)
  101. frame.Size = UDim2.new(0, 270, 0, 140)
  102. frame.Position = UDim2.new(0.5, -135, 0.5, -70)
  103. frame.BackgroundColor3 = Color3.fromRGB(15, 15, 25)
  104. frame.BorderSizePixel = 0
  105. frame.AnchorPoint = Vector2.new(0.5, 0.5)
  106. frame.Active = true
  107. frame.Draggable = true -- PC drag
  108.  
  109. Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 10)
  110. local stroke = Instance.new("UIStroke", frame)
  111. stroke.Color = Color3.fromRGB(0, 200, 255)
  112. stroke.Thickness = 2
  113. stroke.Transparency = 0.3
  114.  
  115. local title = Instance.new("TextLabel", frame)
  116. title.Text = "Ken's TP"
  117. title.Size = UDim2.new(1, -40, 0, 30)
  118. title.Position = UDim2.new(0, 10, 0, 0)
  119. title.TextColor3 = Color3.fromRGB(255, 80, 80)
  120. title.BackgroundTransparency = 1
  121. title.Font = Enum.Font.GothamBold
  122. title.TextSize = 18
  123. title.TextXAlignment = Enum.TextXAlignment.Left
  124.  
  125. local minimize = Instance.new("TextButton", frame)
  126. minimize.Text = "—"
  127. minimize.Size = UDim2.new(0, 20, 0, 20)
  128. minimize.Position = UDim2.new(1, -50, 0, 5)
  129. minimize.BackgroundTransparency = 1
  130. minimize.TextColor3 = Color3.fromRGB(0, 170, 255)
  131. minimize.Font = Enum.Font.GothamBold
  132. minimize.TextSize = 18
  133.  
  134. local close = Instance.new("TextButton", frame)
  135. close.Text = "X"
  136. close.Size = UDim2.new(0, 20, 0, 20)
  137. close.Position = UDim2.new(1, -25, 0, 5)
  138. close.BackgroundTransparency = 1
  139. close.TextColor3 = Color3.fromRGB(255, 70, 70)
  140. close.Font = Enum.Font.GothamBold
  141. close.TextSize = 18
  142.  
  143. local tpButton = Instance.new("TextButton", frame)
  144. tpButton.Size = UDim2.new(0.8, 0, 0, 50)
  145. tpButton.Position = UDim2.new(0.1, 0, 0.45, 0)
  146. tpButton.Text = "Instant Steal"
  147. tpButton.BackgroundColor3 = Color3.fromRGB(0, 140, 255)
  148. tpButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  149. tpButton.Font = Enum.Font.GothamSemibold
  150. tpButton.TextSize = 18
  151. Instance.new("UICorner", tpButton).CornerRadius = UDim.new(0, 8)
  152.  
  153. tpButton.MouseButton1Click:Connect(DeliverBrainrot)
  154.  
  155. local minimized = false
  156. minimize.MouseButton1Click:Connect(function()
  157. minimized = not minimized
  158. tpButton.Visible = not minimized
  159. frame.Size = minimized and UDim2.new(0, 270, 0, 30) or UDim2.new(0, 270, 0, 140)
  160. end)
  161.  
  162. close.MouseButton1Click:Connect(function()
  163. gui:Destroy()
  164. end)
  165.  
  166. -- Mobile + PC drag
  167. local dragging, dragInput, dragStart, startPos
  168. frame.InputBegan:Connect(function(input)
  169. if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  170. dragging = true
  171. dragStart = input.Position
  172. startPos = frame.Position
  173. input.Changed:Connect(function()
  174. if input.UserInputState == Enum.UserInputState.End then
  175. dragging = false
  176. end
  177. end)
  178. end
  179. end)
  180.  
  181. frame.InputChanged:Connect(function(input)
  182. if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement then
  183. dragInput = input
  184. end
  185. end)
  186.  
  187. RunService.InputChanged:Connect(function(input)
  188. if input == dragInput and dragging then
  189. local delta = input.Position - dragStart
  190. frame.Position = UDim2.new(
  191. startPos.X.Scale,
  192. startPos.X.Offset + delta.X,
  193. startPos.Y.Scale,
  194. startPos.Y.Offset + delta.Y
  195. )
  196. end
  197. end)
  198.  
Advertisement
Add Comment
Please, Sign In to add comment