Advertisement
Guest User

Auto Void (Tsb) - Roblox

a guest
Mar 7th, 2025
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.92 KB | Gaming | 0 0
  1. local StarterGui = game:GetService("StarterGui")
  2. local player = game:GetService("Players").LocalPlayer
  3.  
  4. StarterGui:SetCore("SendNotification", {
  5. Title = "NOTIFICATION",
  6. Text = "Welcome, " .. player.Name .. "!",
  7. Duration = 1.2
  8. })
  9.  
  10. StarterGui:SetCore("SendNotification", {
  11. Title = "Made By",
  12. Text = "Baconwithscripts",
  13. Duration = 1.2
  14. })
  15.  
  16. local durations = {
  17. ["rbxassetid://12273188754"] = 1.3,
  18. ["rbxassetid://12296113986"] = 1.45
  19. }
  20. local safeTime = 0.1
  21. local scriptEnabled = false
  22. local safePart
  23.  
  24. local function cleanNumber(input)
  25. local num = input:gsub("[^%d.]", ""):gsub("^%.", "0.")
  26. return tonumber(num) or 0
  27. end
  28.  
  29. local function createSafePart()
  30. if not safePart then
  31. safePart = Instance.new("Part")
  32. safePart.Size = Vector3.new(1000, 10, 1000)
  33. safePart.Position = Vector3.new(-1500, -500, 0)
  34. safePart.Anchored = true
  35. safePart.CanCollide = true
  36. safePart.Transparency = 1
  37. safePart.Parent = workspace
  38. end
  39. end
  40.  
  41. local function onAnimationPlayed(track)
  42. if scriptEnabled and durations[track.Animation.AnimationId] then
  43. task.wait(durations[track.Animation.AnimationId])
  44. local character = player.Character
  45. if not character or not character:FindFirstChild("HumanoidRootPart") then return end
  46.  
  47. local lastcf = character.HumanoidRootPart.CFrame
  48. workspace.Camera.CameraType = Enum.CameraType.Scriptable
  49. character.HumanoidRootPart.CFrame = CFrame.new(safePart.Position + Vector3.new(0, 10, 0))
  50. character.HumanoidRootPart.AssemblyLinearVelocity = Vector3.zero
  51. character.HumanoidRootPart.AssemblyAngularVelocity = Vector3.zero
  52.  
  53. task.wait(safeTime)
  54.  
  55. if character and character:FindFirstChild("HumanoidRootPart") then
  56. character.HumanoidRootPart.CFrame = lastcf
  57. end
  58. workspace.Camera.CameraType = Enum.CameraType.Custom
  59. end
  60. end
  61.  
  62. local function setupAnimationDetection()
  63. local character = player.Character or player.CharacterAdded:Wait()
  64. local humanoid = character:FindFirstChildOfClass("Humanoid")
  65. if humanoid then
  66. humanoid.Animator.AnimationPlayed:Connect(onAnimationPlayed)
  67. end
  68. end
  69.  
  70. setupAnimationDetection()
  71. player.CharacterAdded:Connect(function()
  72. task.wait(1)
  73. setupAnimationDetection()
  74. createSafePart()
  75. end)
  76.  
  77. local gui = Instance.new("ScreenGui")
  78. local frame = Instance.new("Frame")
  79. local button = Instance.new("TextButton")
  80. local textBox1 = Instance.new("TextBox")
  81. local textBox2 = Instance.new("TextBox")
  82. local textBox3 = Instance.new("TextBox")
  83. local label1 = Instance.new("TextLabel")
  84. local label2 = Instance.new("TextLabel")
  85. local label3 = Instance.new("TextLabel")
  86. local uiStroke = Instance.new("UIStroke")
  87. local showHideButton = Instance.new("TextButton")
  88.  
  89. gui.Parent = game.CoreGui
  90. frame.Parent = gui
  91. frame.Size = UDim2.new(0, 120, 0, 130)
  92. frame.Position = UDim2.new(0, 5, 0.5, -65)
  93. frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  94. frame.Active = true
  95. frame.Draggable = true
  96.  
  97. uiStroke.Parent = frame
  98. uiStroke.Thickness = 2
  99. uiStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  100.  
  101. task.spawn(function()
  102. while task.wait(0.1) do
  103. for hue = 0, 1, 0.02 do
  104. uiStroke.Color = Color3.fromHSV(hue, 1, 1)
  105. task.wait(0.05)
  106. end
  107. end
  108. end)
  109.  
  110. button.Parent = frame
  111. button.Text = "Enable"
  112. button.Size = UDim2.new(0, 100, 0, 20)
  113. button.Position = UDim2.new(0, 10, 0, 5)
  114. button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  115. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  116. button.TextScaled = true
  117.  
  118. label1.Text = "Skill 1"
  119. label2.Text = "Skill 2"
  120. label3.Text = "Safe Time"
  121.  
  122. for _, lbl in pairs({label1, label2, label3}) do
  123. lbl.Parent = frame
  124. lbl.Size = UDim2.new(0, 50, 0, 15)
  125. lbl.TextColor3 = Color3.fromRGB(255, 255, 255)
  126. lbl.BackgroundTransparency = 1
  127. lbl.TextScaled = true
  128. end
  129.  
  130. label1.Position = UDim2.new(0, 10, 0, 30)
  131. label2.Position = UDim2.new(0, 65, 0, 30)
  132. label3.Position = UDim2.new(0.5, -25, 0, 75)
  133.  
  134. textBox1.Size = UDim2.new(0, 50, 0, 20)
  135. textBox1.Position = UDim2.new(0, 10, 0, 50)
  136. textBox1.PlaceholderText = "1.3"
  137. textBox1.Text = "1.3"
  138.  
  139. textBox2.Size = UDim2.new(0, 50, 0, 20)
  140. textBox2.Position = UDim2.new(0, 65, 0, 50)
  141. textBox2.PlaceholderText = "1.45"
  142. textBox2.Text = "1.45"
  143.  
  144. textBox3.Size = UDim2.new(0, 100, 0, 20)
  145. textBox3.Position = UDim2.new(0.5, -50, 0, 95)
  146. textBox3.PlaceholderText = "0.1"
  147. textBox3.Text = "0.1"
  148.  
  149. for _, txt in pairs({textBox1, textBox2, textBox3}) do
  150. txt.Parent = frame
  151. txt.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  152. txt.TextColor3 = Color3.fromRGB(255, 255, 255)
  153. txt.TextScaled = true
  154. end
  155.  
  156. showHideButton.Parent = gui
  157. showHideButton.Size = UDim2.new(0, 20, 0, 20)
  158. showHideButton.Position = UDim2.new(0, 5, 0, 5)
  159. showHideButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  160. showHideButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  161. showHideButton.Text = "+"
  162. showHideButton.TextScaled = true
  163.  
  164. local uiStrokeButton = Instance.new("UIStroke")
  165. uiStrokeButton.Parent = showHideButton
  166. uiStrokeButton.Thickness = 2
  167. uiStrokeButton.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  168.  
  169. task.spawn(function()
  170. while task.wait(0.1) do
  171. for hue = 0, 1, 0.02 do
  172. uiStrokeButton.Color = Color3.fromHSV(hue, 1, 1)
  173. task.wait(0.05)
  174. end
  175. end
  176. end)
  177.  
  178. showHideButton.MouseButton1Click:Connect(function()
  179. frame.Visible = not frame.Visible
  180. showHideButton.Text = frame.Visible and "-" or "+"
  181. end)
  182.  
  183. button.MouseButton1Click:Connect(function()
  184. scriptEnabled = not scriptEnabled
  185. button.Text = scriptEnabled and "Disable" or "Enable"
  186. StarterGui:SetCore("SendNotification", {
  187. Title = "NOTIFICATION",
  188. Text = scriptEnabled and "Auto Void Script Enabled!" or "Auto Void Script Disabled!",
  189. Duration = 1.2
  190. })
  191. if scriptEnabled then createSafePart() end
  192. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement