Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local StarterGui = game:GetService("StarterGui")
- local player = game:GetService("Players").LocalPlayer
- StarterGui:SetCore("SendNotification", {
- Title = "NOTIFICATION",
- Text = "Welcome, " .. player.Name .. "!",
- Duration = 1.2
- })
- StarterGui:SetCore("SendNotification", {
- Title = "Made By",
- Text = "Baconwithscripts",
- Duration = 1.2
- })
- local durations = {
- ["rbxassetid://12273188754"] = 1.3,
- ["rbxassetid://12296113986"] = 1.45
- }
- local safeTime = 0.1
- local scriptEnabled = false
- local safePart
- local function cleanNumber(input)
- local num = input:gsub("[^%d.]", ""):gsub("^%.", "0.")
- return tonumber(num) or 0
- end
- local function createSafePart()
- if not safePart then
- safePart = Instance.new("Part")
- safePart.Size = Vector3.new(1000, 10, 1000)
- safePart.Position = Vector3.new(-1500, -500, 0)
- safePart.Anchored = true
- safePart.CanCollide = true
- safePart.Transparency = 1
- safePart.Parent = workspace
- end
- end
- local function onAnimationPlayed(track)
- if scriptEnabled and durations[track.Animation.AnimationId] then
- task.wait(durations[track.Animation.AnimationId])
- local character = player.Character
- if not character or not character:FindFirstChild("HumanoidRootPart") then return end
- local lastcf = character.HumanoidRootPart.CFrame
- workspace.Camera.CameraType = Enum.CameraType.Scriptable
- character.HumanoidRootPart.CFrame = CFrame.new(safePart.Position + Vector3.new(0, 10, 0))
- character.HumanoidRootPart.AssemblyLinearVelocity = Vector3.zero
- character.HumanoidRootPart.AssemblyAngularVelocity = Vector3.zero
- task.wait(safeTime)
- if character and character:FindFirstChild("HumanoidRootPart") then
- character.HumanoidRootPart.CFrame = lastcf
- end
- workspace.Camera.CameraType = Enum.CameraType.Custom
- end
- end
- local function setupAnimationDetection()
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- humanoid.Animator.AnimationPlayed:Connect(onAnimationPlayed)
- end
- end
- setupAnimationDetection()
- player.CharacterAdded:Connect(function()
- task.wait(1)
- setupAnimationDetection()
- createSafePart()
- end)
- local gui = Instance.new("ScreenGui")
- local frame = Instance.new("Frame")
- local button = Instance.new("TextButton")
- local textBox1 = Instance.new("TextBox")
- local textBox2 = Instance.new("TextBox")
- local textBox3 = Instance.new("TextBox")
- local label1 = Instance.new("TextLabel")
- local label2 = Instance.new("TextLabel")
- local label3 = Instance.new("TextLabel")
- local uiStroke = Instance.new("UIStroke")
- local showHideButton = Instance.new("TextButton")
- gui.Parent = game.CoreGui
- frame.Parent = gui
- frame.Size = UDim2.new(0, 120, 0, 130)
- frame.Position = UDim2.new(0, 5, 0.5, -65)
- frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- frame.Active = true
- frame.Draggable = true
- uiStroke.Parent = frame
- uiStroke.Thickness = 2
- uiStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- task.spawn(function()
- while task.wait(0.1) do
- for hue = 0, 1, 0.02 do
- uiStroke.Color = Color3.fromHSV(hue, 1, 1)
- task.wait(0.05)
- end
- end
- end)
- button.Parent = frame
- button.Text = "Enable"
- button.Size = UDim2.new(0, 100, 0, 20)
- button.Position = UDim2.new(0, 10, 0, 5)
- button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.TextScaled = true
- label1.Text = "Skill 1"
- label2.Text = "Skill 2"
- label3.Text = "Safe Time"
- for _, lbl in pairs({label1, label2, label3}) do
- lbl.Parent = frame
- lbl.Size = UDim2.new(0, 50, 0, 15)
- lbl.TextColor3 = Color3.fromRGB(255, 255, 255)
- lbl.BackgroundTransparency = 1
- lbl.TextScaled = true
- end
- label1.Position = UDim2.new(0, 10, 0, 30)
- label2.Position = UDim2.new(0, 65, 0, 30)
- label3.Position = UDim2.new(0.5, -25, 0, 75)
- textBox1.Size = UDim2.new(0, 50, 0, 20)
- textBox1.Position = UDim2.new(0, 10, 0, 50)
- textBox1.PlaceholderText = "1.3"
- textBox1.Text = "1.3"
- textBox2.Size = UDim2.new(0, 50, 0, 20)
- textBox2.Position = UDim2.new(0, 65, 0, 50)
- textBox2.PlaceholderText = "1.45"
- textBox2.Text = "1.45"
- textBox3.Size = UDim2.new(0, 100, 0, 20)
- textBox3.Position = UDim2.new(0.5, -50, 0, 95)
- textBox3.PlaceholderText = "0.1"
- textBox3.Text = "0.1"
- for _, txt in pairs({textBox1, textBox2, textBox3}) do
- txt.Parent = frame
- txt.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
- txt.TextColor3 = Color3.fromRGB(255, 255, 255)
- txt.TextScaled = true
- end
- showHideButton.Parent = gui
- showHideButton.Size = UDim2.new(0, 20, 0, 20)
- showHideButton.Position = UDim2.new(0, 5, 0, 5)
- showHideButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- showHideButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- showHideButton.Text = "+"
- showHideButton.TextScaled = true
- local uiStrokeButton = Instance.new("UIStroke")
- uiStrokeButton.Parent = showHideButton
- uiStrokeButton.Thickness = 2
- uiStrokeButton.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- task.spawn(function()
- while task.wait(0.1) do
- for hue = 0, 1, 0.02 do
- uiStrokeButton.Color = Color3.fromHSV(hue, 1, 1)
- task.wait(0.05)
- end
- end
- end)
- showHideButton.MouseButton1Click:Connect(function()
- frame.Visible = not frame.Visible
- showHideButton.Text = frame.Visible and "-" or "+"
- end)
- button.MouseButton1Click:Connect(function()
- scriptEnabled = not scriptEnabled
- button.Text = scriptEnabled and "Disable" or "Enable"
- StarterGui:SetCore("SendNotification", {
- Title = "NOTIFICATION",
- Text = scriptEnabled and "Auto Void Script Enabled!" or "Auto Void Script Disabled!",
- Duration = 1.2
- })
- if scriptEnabled then createSafePart() end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement