Astr0 Hub Open Source
Key RequiredUniversal

Astr0 Hub Open Source

Universal ScriptAstr0Astr0 3K views 95 executesUpdated Jul 12, 2025
5.0/ 5(2 votes)
20100% Positive
Lua Script•1142 lines (36318 chars)
--[[
	WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
--]]
--[[
	WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
-- Load Rayfield UI
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()

-- Create Window
local Window = Rayfield:CreateWindow({
   Name = "4str0 Hub",
   LoadingTitle = "Loading...",
   LoadingSubtitle = "By Astro",
   ConfigurationSaving = {
      Enabled = true,
      FolderName = nil,
      FileName = "MyRayfieldUI"
   },
   Discord = {
      Enabled = false,
      Invite = "",
      RememberJoins = false
   },
   KeySystem = false,
})

-- Create Main Tab
local MainTab = Window:CreateTab("Main", 4483362458)


-- Create Troll Tab if it doesn't exist yet
local TrollTab = Window:CreateTab("Troll", 4483362458)


-- Create the Misc tab
local MiscTab = Window:CreateTab("Misc", 7734302336) -- Change icon ID if you want

MiscTab:CreateButton({
    Name = "Heal",
    Callback = function()
        local player = game.Players.LocalPlayer
        local character = player.Character or player.CharacterAdded:Wait()
        local humanoid = character:FindFirstChildOfClass("Humanoid")
        if humanoid then
            humanoid.Health = humanoid.MaxHealth
            if Rayfield and Rayfield.Notify then
                Rayfield:Notify({
                    Title = "Heal",
                    Content = "You have been healed!",
                    Duration = 3,
                })
            end
        else
            if Rayfield and Rayfield.Notify then
                Rayfield:Notify({
                    Title = "Heal",
                    Content = "Humanoid not found!",
                    Duration = 3,
                })
            end
        end
    end,
})


local Rayfield = Rayfield -- assuming you already have it

local Players = game:GetService("Players")
local Debris = game:GetService("Debris")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer

local flingPower = 1e6 -- increase power as needed
local touchFlingEnabled = false
local touchConnections = {}

-- Anti-fling protection on self to avoid getting flung
local antiFlingConnection

local function enableAntiFling()
    if antiFlingConnection then return end
    antiFlingConnection = RunService.Heartbeat:Connect(function()
        local char = LocalPlayer.Character
        if not char then return end
        local hrp = char:FindFirstChild("HumanoidRootPart")
        if not hrp then return end

        hrp.AssemblyLinearVelocity = Vector3.new(0,0,0)
        hrp.AssemblyAngularVelocity = Vector3.new(0,0,0)

        for _, force in ipairs(hrp:GetChildren()) do
            if force:IsA("BodyVelocity") or force:IsA("BodyThrust") or force:IsA("BodyAngularVelocity") or force:IsA("BodyGyro") then
                force:Destroy()
            end
        end
    end)
end

local function disableAntiFling()
    if antiFlingConnection then
        antiFlingConnection:Disconnect()
        antiFlingConnection = nil
    end
end

-- Clean up connections
local function disconnectTouchConnections()
    for _, conn in ipairs(touchConnections) do
        conn:Disconnect()
    end
    touchConnections = {}
end

TrollTab:CreateToggle({
    Name = "Touch Fling (Strong)",
    CurrentValue = false,
    Callback = function(state)
        touchFlingEnabled = state

        disconnectTouchConnections()
        disableAntiFling()

        if not state then
            Rayfield:Notify({Title = "Touch Fling", Content = "Disabled", Duration = 2})
            return
        end

        Rayfield:Notify({Title = "Touch Fling", Content = "Enabled — fling others on touch!", Duration = 2})

        enableAntiFling()

        local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()

        -- Connect Touched on all BaseParts in character
        for _, part in ipairs(char:GetDescendants()) do
            if part:IsA("BasePart") then
                local conn = part.Touched:Connect(function(hit)
                    if not touchFlingEnabled then return end
                    if hit:IsDescendantOf(char) then return end -- Ignore self hits

                    local otherChar = hit:FindFirstAncestorOfClass("Model")
                    if not otherChar or otherChar == char then return end
                    local otherPlr = Players:GetPlayerFromCharacter(otherChar)
                    if not otherPlr then return end

                    local targetHRP = otherChar:FindFirstChild("HumanoidRootPart")
                    if not targetHRP then return end

                    -- Create strong BodyThrust to fling them away from you
                    local thrust = Instance.new("BodyThrust")
                    local direction = (targetHRP.Position - part.Position).Unit
                    thrust.Force = direction * flingPower + Vector3.new(0, flingPower / 2, 0)
                    thrust.Location = targetHRP.Position
                    thrust.Parent = targetHRP
                    Debris:AddItem(thrust, 0.2)
                end)
                table.insert(touchConnections, conn)
            end
        end
    end
})

local savedCFrame = nil  -- Store saved position here

-- Save Position Button
MiscTab:CreateButton({
    Name = "Save Position",
    Callback = function()
        local char = LocalPlayer.Character
        if not char then
            Rayfield:Notify({Title = "Save Position", Content = "Character not loaded!", Duration = 3})
            return
        end
        local hrp = char:FindFirstChild("HumanoidRootPart")
        if not hrp then
            Rayfield:Notify({Title = "Save Position", Content = "HumanoidRootPart not found!", Duration = 3})
            return
        end

        savedCFrame = hrp.CFrame
        Rayfield:Notify({Title = "Save Position", Content = "Position saved!", Duration = 3})
    end,
})

-- Load Position Button
MiscTab:CreateButton({
    Name = "Load Position",
    Callback = function()
        if not savedCFrame then
            Rayfield:Notify({Title = "Load Position", Content = "No position saved yet!", Duration = 3})
            return
        end

        local char = LocalPlayer.Character
        if not char then
            Rayfield:Notify({Title = "Load Position", Content = "Character not loaded!", Duration = 3})
            return
        end
        local hrp = char:FindFirstChild("HumanoidRootPart")
        if not hrp then
            Rayfield:Notify({Title = "Load Position", Content = "HumanoidRootPart not found!", Duration = 3})
            return
        end

        hrp.CFrame = savedCFrame
        Rayfield:Notify({Title = "Load Position", Content = "Teleported to saved position!", Duration = 3})
    end,
})

MiscTab:CreateButton({
    Name = "Destroy Script",
    Callback = function()
        -- Notify before destroying
        if Rayfield and Rayfield.Notify then
            Rayfield:Notify({
                Title = "Destroy Script",
                Content = "Destroying UI and cleaning up...",
                Duration = 3,
            })
        end

        -- Disconnect any connections you have stored (example: anti-fling, spin, etc.)
        if antiFlingConnection then
            antiFlingConnection:Disconnect()
            antiFlingConnection = nil
        end

        if flingConnection then
            flingConnection:Disconnect()
            flingConnection = nil
        end

        -- Destroy the main window/UI
        if Window then
            Window:Destroy()
            Window = nil
        end

        -- Remove any additional objects you created (backgrounds, etc.)
        local cosmicBg = game:GetService("CoreGui"):FindFirstChild("CosmicBackground")
        if cosmicBg then
            cosmicBg:Destroy()
        end
    end,
})



local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer

local proximityFlingEnabled = false
local proximityFlingRadius = 5
local proximityFlingForceAmount = 999999

local proximityFlingConnection
local teleportBackConnection

local originalPosition = nil
local isMoving = false
local lastMoveTime = 0
local stopDelay = 1 -- seconds to wait before teleporting back after stopping

TrollTab:CreateToggle({
    Name = "Proximity Fling with Teleport Back",
    CurrentValue = false,
    Callback = function(value)
        proximityFlingEnabled = value

        if proximityFlingEnabled then
            if not player.Character or not player.Character:FindFirstChild("HumanoidRootPart") then
                Rayfield:Notify({
                    Title = "Error",
                    Content = "Character not loaded.",
                    Duration = 3,
                })
                return
            end

            local hrp = player.Character.HumanoidRootPart
            originalPosition = hrp.CFrame

            Rayfield:Notify({
                Title = "Proximity Fling",
                Content = "Enabled",
                Duration = 3,
            })

            -- Monitor movement input
            UserInputService.InputBegan:Connect(function(input, gameProcessed)
                if gameProcessed then return end
                if input.UserInputType == Enum.UserInputType.Keyboard then
                    if input.KeyCode == Enum.KeyCode.W or
                       input.KeyCode == Enum.KeyCode.A or
                       input.KeyCode == Enum.KeyCode.S or
                       input.KeyCode == Enum.KeyCode.D then
                        if not isMoving then
                            -- Start moving: record position
                            if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
                                originalPosition = player.Character.HumanoidRootPart.CFrame
                            end
                        end
                        isMoving = true
                        lastMoveTime = tick()
                    end
                end
            end)

            UserInputService.InputEnded:Connect(function(input, gameProcessed)
                if gameProcessed then return end
                if input.UserInputType == Enum.UserInputType.Keyboard then
                    if input.KeyCode == Enum.KeyCode.W or
                       input.KeyCode == Enum.KeyCode.A or
                       input.KeyCode == Enum.KeyCode.S or
                       input.KeyCode == Enum.KeyCode.D then
                        lastMoveTime = tick()
                    end
                end
            end)

            proximityFlingConnection = RunService.Heartbeat:Connect(function()
                if not player.Character or not player.Character:FindFirstChild("HumanoidRootPart") then return end
                local hrp = player.Character.HumanoidRootPart

                -- Check if player has stopped moving for > stopDelay seconds
                if isMoving and (tick() - lastMoveTime) > stopDelay then
                    -- Teleport back
                    if originalPosition then
                        hrp.CFrame = originalPosition
                    end

                    isMoving = false

                    -- Stop the fling loop
                    if proximityFlingConnection then
                        proximityFlingConnection:Disconnect()
                        proximityFlingConnection = nil
                    end

                    Rayfield:Notify({
                        Title = "Proximity Fling",
                        Content = "Stopped & teleported back",
                        Duration = 3,
                    })

                    return
                end

                if isMoving then
                    -- Fling nearby players while moving
                    for _, otherPlayer in pairs(Players:GetPlayers()) do
                        if otherPlayer ~= player and otherPlayer.Character then
                            local otherHRP = otherPlayer.Character:FindFirstChild("HumanoidRootPart")
                            if otherHRP and (hrp.Position - otherHRP.Position).Magnitude <= proximityFlingRadius then
                                local flingForce = Instance.new("BodyThrust")
                                flingForce.Force = Vector3.new(proximityFlingForceAmount, proximityFlingForceAmount, proximityFlingForceAmount)
                                flingForce.Location = otherHRP.Position
                                flingForce.Parent = otherHRP

                                task.delay(0.5, function()
                                    if flingForce and flingForce.Parent then
                                        flingForce:Destroy()
                                    end
                                end)
                            end
                        end
                    end
                end
            end)

        else
            -- Disabled toggle: disconnect if active
            if proximityFlingConnection then
                proximityFlingConnection:Disconnect()
                proximityFlingConnection = nil
            end
            Rayfield:Notify({
                Title = "Proximity Fling",
                Content = "Disabled",
                Duration = 3,
            })
        end
    end,
})


local spinning = false
local spinSpeed = 10
local spinConnection
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")

TrollTab:CreateToggle({
    Name = "Spin",
    CurrentValue = false,
    Callback = function(value)
        spinning = value

        if spinning then
            Rayfield:Notify({
                Title = "Spin",
                Content = "Spinning started at speed: "..spinSpeed,
                Duration = 3,
            })

            spinConnection = game:GetService("RunService").Heartbeat:Connect(function()
                if hrp and spinning then
                    local angleRadians = math.rad(spinSpeed)
                    hrp.CFrame = hrp.CFrame * CFrame.Angles(0, angleRadians, 0)
                else
                    if spinConnection then
                        spinConnection:Disconnect()
                        spinConnection = nil
                    end
                end
            end)
        else
            if spinConnection then
                spinConnection:Disconnect()
                spinConnection = nil
            end

            Rayfield:Notify({
                Title = "Spin",
                Content = "Spinning stopped.",
                Duration = 3,
            })
        end
    end,
})

TrollTab:CreateSlider({
    Name = "Spin Speed",
    Range = {1, 100},
    Increment = 1,
    Suffix = "deg",
    CurrentValue = spinSpeed,
    Callback = function(value)
        spinSpeed = value
        -- No notification on speed change while spinning
    end,
})

MiscTab:CreateToggle({
    Name = "Bypass Anti-Cheat (Client-side)",
    CurrentValue = false,
    Callback = function(state)
        if state then
            -- Disable all LocalScripts with 'anticheat' in the name (case insensitive)
            local disabledCount = 0
            for _, v in pairs(game:GetDescendants()) do
                if v:IsA("LocalScript") and v.Name:lower():find("anticheat") then
                    v.Disabled = true
                    disabledCount = disabledCount + 1
                end
            end
            if disabledCount > 0 then
                warn("[Bypass] Disabled "..disabledCount.." anti-cheat LocalScripts.")
            else
                warn("[Bypass] No anti-cheat LocalScripts found to disable.")
            end
        else
            warn("[Bypass] Disabled. Restart the game to re-enable anti-cheat scripts.")
            -- Note: Re-enabling disabled LocalScripts client-side usually requires a restart
        end
    end,
})


-- Anti-Fling Toggle
local antiFlingEnabled = false
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local antiFlingConnection

MiscTab:CreateToggle({
    Name = "Anti-Fling",
    CurrentValue = false,
    Callback = function(state)
        antiFlingEnabled = state
        if antiFlingEnabled then
            if antiFlingConnection then return end
            antiFlingConnection = RunService.Heartbeat:Connect(function()
                local char = LocalPlayer.Character
                if not char then return end
                local hrp = char:FindFirstChild("HumanoidRootPart")
                if not hrp then return end

                -- Remove all physics forces on HumanoidRootPart
                for _, force in pairs(hrp:GetChildren()) do
                    if force:IsA("BodyForce") or force:IsA("BodyVelocity") or force:IsA("BodyGyro") or force:IsA("BodyAngularVelocity") or force:IsA("BodyThrust") then
                        force:Destroy()
                    end
                end

                -- Reset velocity to zero
                hrp.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
                hrp.AssemblyAngularVelocity = Vector3.new(0, 0, 0)
            end)
            warn("[Anti-Fling] Enabled")
        else
            if antiFlingConnection then
                antiFlingConnection:Disconnect()
                antiFlingConnection = nil
            end
            warn("[Anti-Fling] Disabled")
        end
    end,
})

-- Example toggle: Enable Noclip (you already have in MainTab, but for demo)
MiscTab:CreateToggle({
    Name = "Noclip (Misc)",
    CurrentValue = false,
    Callback = function(state)
        noclip = state
    end,
})




local flingTargetName = ""
local originalCFrame

TrollTab:CreateInput({
   Name = "Player Name to Fling",
   PlaceholderText = "Enter player name...",
   RemoveTextAfterFocusLost = false,
   Callback = function(text)
      flingTargetName = text
   end,
})






-- Variables
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")


-- Noclip Toggle
local noclip = false

MainTab:CreateToggle({
   Name = "Noclip",
   CurrentValue = false,
   Callback = function(Value)
      noclip = Value
   end,
})

-- Noclip Loop
game:GetService("RunService").Stepped:Connect(function()
   if noclip and player.Character then
      for _, part in pairs(player.Character:GetDescendants()) do
         if part:IsA("BasePart") and part.CanCollide then
            part.CanCollide = false
         end
      end
   end
end)

-- Smooth Fly Toggle
local flying = false
local BV, BG
local UIS = game:GetService("UserInputService")
local cam = workspace.CurrentCamera

MainTab:CreateToggle({
   Name = "Fly (Smooth)",
   CurrentValue = false,
   Callback = function(Value)
      flying = Value

      local char = player.Character or player.CharacterAdded:Wait()
      local root = char:WaitForChild("HumanoidRootPart")

      if flying then
         -- Create BodyVelocity and BodyGyro
         BV = Instance.new("BodyVelocity")
         BV.Velocity = Vector3.zero
         BV.MaxForce = Vector3.new(1e5, 1e5, 1e5)
         BV.P = 1000
         BV.Parent = root

         BG = Instance.new("BodyGyro")
         BG.MaxTorque = Vector3.new(1e5, 1e5, 1e5)
         BG.P = 1000
         BG.CFrame = root.CFrame
         BG.Parent = root
      else
         -- Cleanup
         if BV then BV:Destroy() end
         if BG then BG:Destroy() end
         BV, BG = nil, nil
      end
   end,
})

-- Smooth Fly Movement
game:GetService("RunService").RenderStepped:Connect(function()
   if flying and BV and BG then
      local moveVec = Vector3.zero

      if UIS:IsKeyDown(Enum.KeyCode.W) then
         moveVec = moveVec + cam.CFrame.LookVector
      end
      if UIS:IsKeyDown(Enum.KeyCode.S) then
         moveVec = moveVec - cam.CFrame.LookVector
      end
      if UIS:IsKeyDown(Enum.KeyCode.A) then
         moveVec = moveVec - cam.CFrame.RightVector
      end
      if UIS:IsKeyDown(Enum.KeyCode.D) then
         moveVec = moveVec + cam.CFrame.RightVector
      end
      if UIS:IsKeyDown(Enum.KeyCode.Space) then
         moveVec = moveVec + Vector3.new(0, 1, 0)
      end
      if UIS:IsKeyDown(Enum.KeyCode.LeftControl) then
         moveVec = moveVec - Vector3.new(0, 1, 0)
      end

      BV.Velocity = moveVec.Magnitude > 0 and moveVec.Unit * 60 or Vector3.zero
      BG.CFrame = CFrame.new(cam.CFrame.Position, cam.CFrame.Position + cam.CFrame.LookVector)
   end
end)

local player = game.Players.LocalPlayer

-- Assuming MainTab already exists:
-- local MainTab = Window:CreateTab("Main", 4483362458)

MainTab:CreateSlider({
    Name = "Walk Speed",
    Range = {16, 500},
    Increment = 1,
    Suffix = "Speed",
    CurrentValue = 16,
    Flag = "WalkSpeedSlider",
    Callback = function(value)
        local character = player.Character
        if character then
            local humanoid = character:FindFirstChildOfClass("Humanoid")
            if humanoid then
                humanoid.WalkSpeed = value
            end
        end
    end,
})

MainTab:CreateSlider({
    Name = "Jump Power",
    Range = {50, 500},
    Increment = 1,
    Suffix = "JumpPower",
    CurrentValue = 50,
    Flag = "JumpPowerSlider",
    Callback = function(value)
        local character = player.Character
        if character then
            local humanoid = character:FindFirstChildOfClass("Humanoid")
            if humanoid then
                humanoid.JumpPower = value
            end
        end
    end,
})

TrollTab:CreateButton({
   Name = "Fling Player",
   Callback = function()
      local success, err = pcall(function()
         if flingTargetName == "" then
            warn("Please enter a player name")
            return
         end

         local targetPlayer = nil
         for _, p in pairs(game.Players:GetPlayers()) do
            if p ~= player and string.lower(p.Name):sub(1, #flingTargetName) == string.lower(flingTargetName) then
               targetPlayer = p
               break
            end
         end

         if not targetPlayer then
            if Rayfield and Rayfield.Notify then
               Rayfield:Notify({
                  Title = "Error",
                  Content = "Player not found.",
                  Duration = 3,
               })
            else
               warn("Player not found.")
            end
            return
         end

         local myChar = player.Character or player.CharacterAdded:Wait()
         local myHRP = myChar:FindFirstChild("HumanoidRootPart")
         local targetChar = targetPlayer.Character or targetPlayer.CharacterAdded:Wait()
         local targetHRP = targetChar:FindFirstChild("HumanoidRootPart")

         if not myHRP or not targetHRP then
            if Rayfield and Rayfield.Notify then
               Rayfield:Notify({
                  Title = "Error",
                  Content = "One of the characters is not fully loaded.",
                  Duration = 3,
               })
            else
               warn("Character HumanoidRootPart missing.")
            end
            return
         end

         local originalCFrame = myHRP.CFrame

         local runService = game:GetService("RunService")
         local connection

         -- Create fling forces
         local flingForce = Instance.new("BodyThrust")
         flingForce.Force = Vector3.new(999999, 999999, 999999)
         flingForce.Location = myHRP.Position
         flingForce.Parent = myHRP

         -- Optional spinning force that might have been added; if you use one, store and destroy it here:
         -- local spinForce = myHRP:FindFirstChildWhichIsA("BodyAngularVelocity")
         -- if spinForce then spinForce:Destroy() end

         connection = runService.Heartbeat:Connect(function()
            if targetHRP and myHRP then
               myHRP.CFrame = targetHRP.CFrame * CFrame.new(0, 2, 0)
               flingForce.Location = myHRP.Position
            else
               connection:Disconnect()
            end
         end)

         -- After 3 seconds, stop fling, stop spinning, teleport back
         task.delay(3, function()
            if connection then
               connection:Disconnect()
            end
            if flingForce and flingForce.Parent then
               flingForce:Destroy()
            end

            -- Remove any spinning force if exists
            local spinForce = myHRP:FindFirstChildWhichIsA("BodyAngularVelocity")
            if spinForce then spinForce:Destroy() end

            if myChar and myChar:FindFirstChild("HumanoidRootPart") then
               myChar.HumanoidRootPart.CFrame = originalCFrame
            end
         end)
      end)

      if not success then
         if Rayfield and Rayfield.Notify then
            Rayfield:Notify({
               Title = "Error",
               Content = "Callback error: "..tostring(err),
               Duration = 5,
            })
         else
            warn("Callback error:", err)
         end
      end
   end,
})

local runService = game:GetService("RunService")

task.delay(3, function()
   if connection then
      connection:Disconnect()
   end

   -- Remove all physics forces from HumanoidRootPart
   for _, force in pairs(myHRP:GetChildren()) do
      if force:IsA("BodyForce") or force:IsA("BodyVelocity") or force:IsA("BodyThrust") or force:IsA("BodyAngularVelocity") or force:IsA("BodyGyro") then
         force:Destroy()
      end
   end

   -- Teleport back and anchor to freeze mid-air
   if myChar and myChar:FindFirstChild("HumanoidRootPart") then
      myChar.HumanoidRootPart.CFrame = originalCFrame
      myChar.HumanoidRootPart.Anchored = true
   end

   local humanoid = myChar:FindFirstChildOfClass("Humanoid")
   if humanoid then
      humanoid.PlatformStand = true
   end

   -- Override velocity every frame for 3 seconds to prevent flinging
   local freezeTime = 3
   local elapsed = 0
   local heartbeatConnection

   heartbeatConnection = runService.Heartbeat:Connect(function(dt)
      if elapsed >= freezeTime then
         heartbeatConnection:Disconnect()

         -- Unfreeze after 3 seconds
         if humanoid then
            humanoid.PlatformStand = false
         end
         if myChar and myChar:FindFirstChild("HumanoidRootPart") then
            myChar.HumanoidRootPart.Anchored = false
            myChar.HumanoidRootPart.AssemblyLinearVelocity = Vector3.new(0,0,0)
            myChar.HumanoidRootPart.AssemblyAngularVelocity = Vector3.new(0,0,0)
         end
         return
      end

      elapsed = elapsed + dt

      if myChar and myChar:FindFirstChild("HumanoidRootPart") then
         local hrp = myChar.HumanoidRootPart
         hrp.AssemblyLinearVelocity = Vector3.new(0,0,0)
         hrp.AssemblyAngularVelocity = Vector3.new(0,0,0)
      end
   end)
end)


-- Create input box to enter player name
TrollTab:CreateInput({
    Name = "Player Name",
    PlaceholderText = "Enter player name here...",
    RemoveTextAfterFocusLost = false,
    Callback = function(text)
        gotoTargetName = text
    end
})

-- Create the Goto Player button
TrollTab:CreateButton({
    Name = "Goto Player",
    Callback = function()
        if gotoTargetName == "" then
            if Rayfield and Rayfield.Notify then
                Rayfield:Notify({
                    Title = "Error",
                    Content = "Please enter a player name.",
                    Duration = 3,
                })
            else
                warn("Please enter a player name.")
            end
            return
        end

        local targetPlayer = nil
        for _, p in pairs(game.Players:GetPlayers()) do
            if string.lower(p.Name):sub(1, #gotoTargetName) == string.lower(gotoTargetName) then
                targetPlayer = p
                break
            end
        end

        if not targetPlayer or not targetPlayer.Character or not targetPlayer.Character:FindFirstChild("HumanoidRootPart") then
            if Rayfield and Rayfield.Notify then
                Rayfield:Notify({
                    Title = "Error",
                    Content = "Player not found or character not loaded.",
                    Duration = 3,
                })
            else
                warn("Player not found or character not loaded.")
            end
            return
        end

        local myChar = game.Players.LocalPlayer.Character
        if myChar and myChar:FindFirstChild("HumanoidRootPart") then
            myChar.HumanoidRootPart.CFrame = targetPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 3, 0)
        end
    end,
})

TrollTab:CreateButton({
    Name = "Freeze Me (6 seconds)",
    Callback = function()
        local player = game.Players.LocalPlayer
        local char = player.Character
        if not char then return end
        local hrp = char:FindFirstChild("HumanoidRootPart")
        local humanoid = char:FindFirstChildOfClass("Humanoid")
        if not hrp or not humanoid then return end

        local spinConnection
local spinSpeed = 100 -- default spin speed

-- Function to start spinning
local function startSpinning()
    local char = player.Character
    if not char then return end
    local hrp = char:FindFirstChild("HumanoidRootPart")
    if not hrp then return end

    -- Create BodyAngularVelocity if doesn't exist
    local bav = hrp:FindFirstChild("SpinBodyAngularVelocity")
    if not bav then
        bav = Instance.new("BodyAngularVelocity")
        bav.Name = "SpinBodyAngularVelocity"
        bav.MaxTorque = Vector3.new(0, math.huge, 0)
        bav.Parent = hrp
    end
    bav.AngularVelocity = Vector3.new(0, spinSpeed, 0)
end

-- Function to stop spinning
local function stopSpinning()
    local char = player.Character
    if not char then return end
    local hrp = char:FindFirstChild("HumanoidRootPart")
    if not hrp then return end

    local bav = hrp:FindFirstChild("SpinBodyAngularVelocity")
    if bav then
        bav:Destroy()
    end
end



        -- Freeze
        hrp.Anchored = true
        humanoid.PlatformStand = true

        -- Unfreeze after 6 seconds
        task.delay(6, function()
            humanoid.PlatformStand = false
            if hrp then
                hrp.Anchored = false
            end
        end)
    end,
})

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer



local antiFlingEnabled = false
local antiFlingConnection

local function enableAntiFling()
    if antiFlingConnection then return end
    antiFlingConnection = RunService.Heartbeat:Connect(function()
        local char = LocalPlayer.Character
        if not char then return end
        local hrp = char:FindFirstChild("HumanoidRootPart")
        if not hrp then return end

        -- Remove external forces
        for _, force in pairs(hrp:GetChildren()) do
            if force:IsA("BodyForce") or force:IsA("BodyVelocity") or force:IsA("BodyGyro") or force:IsA("BodyAngularVelocity") or force:IsA("BodyThrust") then
                force:Destroy()
            end
        end

        -- Zero velocity to prevent fling momentum
        hrp.AssemblyLinearVelocity = Vector3.new(0,0,0)
        hrp.AssemblyAngularVelocity = Vector3.new(0,0,0)
    end)
end

local function disableAntiFling()
    if antiFlingConnection then
        antiFlingConnection:Disconnect()
        antiFlingConnection = nil
    end
end




local antiFlingConnection

-- Function to enable Anti-Fling
local function enableAntiFling()
    if antiFlingConnection then return end
    antiFlingConnection = RunService.Heartbeat:Connect(function()
        local char = LocalPlayer.Character
        if not char then return end
        local hrp = char:FindFirstChild("HumanoidRootPart")
        if not hrp then return end

        -- Remove all physics forces applied to HumanoidRootPart
        for _, force in pairs(hrp:GetChildren()) do
            if force:IsA("BodyForce") or force:IsA("BodyVelocity") or force:IsA("BodyGyro") or force:IsA("BodyAngularVelocity") or force:IsA("BodyThrust") then
                force:Destroy()
            end
        end

        -- Reset velocity
        hrp.AssemblyLinearVelocity = Vector3.new(0,0,0)
        hrp.AssemblyAngularVelocity = Vector3.new(0,0,0)
    end)
end

-- Function to disable Anti-Fling
local function disableAntiFling()
    if antiFlingConnection then
        antiFlingConnection:Disconnect()
        antiFlingConnection = nil
    end
end

-- Assuming you already have Rayfield loaded as 'Rayfield'

-- Create the Misc tab
local MiscTab = Rayfield:CreateTab({
    Name = "Misc",
    Icon = "rbxassetid://7734302336", -- You can change the icon asset ID if you want
    PremiumOnly = false
})

-- Create a full-screen cosmic background
local backgroundGui = Instance.new("ScreenGui")
backgroundGui.Name = "CosmicBackground"
backgroundGui.IgnoreGuiInset = true
backgroundGui.ResetOnSpawn = false
backgroundGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
backgroundGui.Parent = game:GetService("CoreGui")

local backgroundImage = Instance.new("ImageLabel")
backgroundImage.Name = "GalaxyImage"
backgroundImage.Parent = backgroundGui
backgroundImage.Image = "rbxassetid://12025767049" -- cosmic background
backgroundImage.Size = UDim2.new(1, 0, 1, 0)
backgroundImage.Position = UDim2.new(0, 0, 0, 0)
backgroundImage.BackgroundTransparency = 1
backgroundImage.ImageTransparency = 0.2 -- Set to 0 for no transparency
backgroundImage.ZIndex = 0

local RunService = game:GetService("RunService")
local LocalPlayer = game.Players.LocalPlayer

local antiFlingConnection

-- Function to enable Anti-Fling
local function enableAntiFling()
    if antiFlingConnection then return end
    antiFlingConnection = RunService.Heartbeat:Connect(function()
        local char = LocalPlayer.Character
        if not char then return end
        local hrp = char:FindFirstChild("HumanoidRootPart")
        if not hrp then return end

        -- Remove all physics forces applied to HumanoidRootPart
        for _, force in pairs(hrp:GetChildren()) do
            if force:IsA("BodyForce") or force:IsA("BodyVelocity") or force:IsA("BodyGyro") or force:IsA("BodyAngularVelocity") or force:IsA("BodyThrust") then
                force:Destroy()
            end
        end

        -- Reset velocity
        hrp.AssemblyLinearVelocity = Vector3.new(0,0,0)
        hrp.AssemblyAngularVelocity = Vector3.new(0,0,0)
    end)
end

-- Function to disable Anti-Fling
local function disableAntiFling()
    if antiFlingConnection then
        antiFlingConnection:Disconnect()
        antiFlingConnection = nil
    end
end

-- Create Anti-Fling Toggle in Misc tab
MiscTab:CreateToggle({
    Name = "Anti-Fling",
    CurrentValue = false,
    Callback = function(state)
        if state then
            enableAntiFling()
            warn("[Anti-Fling] Enabled")
        else
            disableAntiFling()
            warn("[Anti-Fling] Disabled")
        end
    end,
})

local spinConnection
local spinSpeed = 100 -- default spin speed

-- Function to start spinning
local function startSpinning()
    local char = player.Character
    if not char then return end
    local hrp = char:FindFirstChild("HumanoidRootPart")
    if not hrp then return end

    -- Create BodyAngularVelocity if doesn't exist
    local bav = hrp:FindFirstChild("SpinBodyAngularVelocity")
    if not bav then
        bav = Instance.new("BodyAngularVelocity")
        bav.Name = "SpinBodyAngularVelocity"
        bav.MaxTorque = Vector3.new(0, math.huge, 0)
        bav.Parent = hrp
    end
    bav.AngularVelocity = Vector3.new(0, spinSpeed, 0)
end

-- Function to stop spinning
local function stopSpinning()
    local char = player.Character
    if not char then return end
    local hrp = char:FindFirstChild("HumanoidRootPart")
    if not hrp then return end

    local bav = hrp:FindFirstChild("SpinBodyAngularVelocity")
    if bav then
        bav:Destroy()
    end
end

Features & Information

REMEMBER THIS SCRIPT IS MY FIRST AND ITS IN BETA REQUEST STUFF IN COMMENTS ----------------------------------------------------------------------- Fling Fly Noclip speed jumpower freeze me (6seconds used for the fling) goto

Community Comments (16)

Astr0Astr0Jul 12, 2025

Let me know your thoughts about my first script!

TheMugenKingTheMugenKingJul 12, 2025

@Archwier The Best, Thank You

TheMugenKingTheMugenKingJul 12, 2025

@Archwier Add All Fling Player Pls?:3

Astr0Astr0Jul 12, 2025

i can try! also the current fling is a bit buggy! so ill fix that first.

TheMugenKingTheMugenKingJul 12, 2025(edited)

@Archwier Use @ To Reply Chat:D, Keep up Bro, Your Script Best, ngl really🔥

Astr0Astr0Jul 12, 2025

@TheMugenKing I would have to start it in a bit due to im fixing the executor im using

TheMugenKingTheMugenKingJul 12, 2025

@Archwier wht exe u using?

Astr0Astr0Jul 12, 2025

@TheMugenKing jjsploit, why?

TheMugenKingTheMugenKingJul 12, 2025

@Archwier Oh, it's okay, I was just asking.

King_King_Jul 12, 2025

bro fix this cuz most of them can be detected especially that noclip

Astr0Astr0Jul 12, 2025

@King_ i will! on it right now!

Astr0Astr0Jul 12, 2025

@king_ added anti-fling and AntiCheatByp*er! (might work)

Astr0Astr0Jul 12, 2025

EVERYONE BE AWARE THAT EVERYTHING TO DO WITH "Fling" IS BUGGY AND BROKEN DO NOT USE

Astr0Astr0Jul 13, 2025

if you like telling me how to do stuff then look for different one?

King_King_Jul 13, 2025(edited)

@Astr0 i was just tryna help you bro also you can use metatable but can be detectable if they check metatable integrity but alr

Astr0Astr0Jul 14, 2025

@King_ this is my very first ever script made by me and you expect me whats dectectable?

More Scripts for Universal Scripts