local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()

local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()

local Window = Rayfield:CreateWindow({
   Name = "Fling Players Gui | Mobile",
   LoadingTitle = "Fling PLayers",
   LoadingSubtitle = "by Chained",
   ConfigurationSaving = {
      Enabled = false,
      FolderName = nil, -- Create a custom folder for your hub/game
      FileName = "Fling Hub"
   },
   Discord = {
      Enabled = false,
      Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD
      RememberJoins = true -- Set this to false to make them join the discord every time they load it up
   },
   KeySystem = false, -- Set this to true to use our key system
   KeySettings = {
      Title = "Key | Youtube Hub",
      Subtitle = "Key System",
      Note = "Key In Discord Server",
      FileName = "nokey", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
      SaveKey = false, -- The user's key will be saved, but if you change the key, they will be unable to use your script
      GrabKeyFromSite = true, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
      Key = {"https://[Log in to view URL]"} -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
   }
})

local MainTab = Window:CreateTab("💜🔄", nil) -- Title, Image
local MainSection = MainTab:CreateSection("Main Gui")
Rayfield:Notify({
   Title = "Thank you for using our script!",
   Content = "the script might get nerfed soon lol, so have fun with it while it last!",
   Duration = 7.5,
   Image = nil,
})

local Button = MainTab:CreateButton({
   --[[
    Fling Part Script with GUI for Roblox Studio
    Description: Creates a spinning part attached to a player that flings nearby objects and players.
    The part is visible to all players and compatible with custom avatars.
]]

-- Settings
local partSize = Vector3.new(5, 5, 5) -- Size of the fling part
local flingForce = 1000 -- Strength of the fling force
local spinSpeed = 10 -- Speed of the spinning motion
local flingEnabled = false -- Tracks the state of the fling part

-- Function to create the fling part
local function createFlingPart(player)
    local character = player.Character or player.CharacterAdded:Wait()
    local rootPart = character:FindFirstChild("HumanoidRootPart") or character:FindFirstChild("Root") -- Fallback for custom rigs

    if not rootPart then
        warn("Root part not found for player: " .. player.Name)
        return
    end

    -- Create the part
    local flingPart = Instance.new("Part")
    flingPart.Size = partSize
    flingPart.Anchored = false
    flingPart.CanCollide = true
    flingPart.Transparency = 0.3
    flingPart.BrickColor = BrickColor.new("Bright red")
    flingPart.Shape = Enum.PartType.Ball
    flingPart.Parent = workspace
    flingPart.Name = player.Name .. "_FlingPart"

    -- Weld the part to the player
    local weld = Instance.new("WeldConstraint")
    weld.Part0 = rootPart
    weld.Part1 = flingPart
    weld.Parent = flingPart

    -- Spin the part
    local spin = Instance.new("BodyAngularVelocity")
    spin.AngularVelocity = Vector3.new(0, spinSpeed, 0)
    spin.MaxTorque = Vector3.new(1e5, 1e5, 1e5)
    spin.P = 1e5
    spin.Parent = flingPart

    -- Detect when players or objects collide with the part
    flingPart.Touched:Connect(function(hit)
        if flingEnabled then
            local hitParent = hit.Parent
            local hitHumanoid = hitParent:FindFirstChild("Humanoid")
            if hitHumanoid and hitParent ~= character then
                local bodyVelocity = Instance.new("BodyVelocity")
                bodyVelocity.Velocity = (hit.Position - rootPart.Position).unit * flingForce
                bodyVelocity.MaxForce = Vector3.new(1e5, 1e5, 1e5)
                bodyVelocity.P = 1e5
                bodyVelocity.Parent = hit

                game:GetService("Debris"):AddItem(bodyVelocity, 0.2) -- Remove after 0.2 seconds
            end
        end
    end)
end

-- Create Screen GUI and Text Button
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local button = Instance.new("TextButton")
button.Size = UDim2.new(0, 200, 0, 50)
button.Position = UDim2.new(0.5, -100, 0.9, -25)
button.Text = "Fling: Off"
button.BackgroundColor3 = Color3.new(1, 0, 0)
button.Parent = screenGui

-- Button Functionality
button.MouseButton1Click:Connect(function()
    flingEnabled = not flingEnabled
    button.Text = flingEnabled and "Fling: On" or "Fling: Off"
    button.BackgroundColor3 = flingEnabled and Color3.new(0, 1, 0) or Color3.new(1, 0, 0)

    if flingEnabled then
        local player = game.Players.LocalPlayer
        if player.Character then
            createFlingPart(player)
        end
    else
        local existingPart = workspace:FindFirstChild(game.Players.LocalPlayer.Name .. "_FlingPart")
        if existingPart then
            existingPart:Destroy()
        end
    end
end)

-- Handle character added for replication
game.Players.LocalPlayer.CharacterAdded:Connect(function(character)
    if flingEnabled then
        createFlingPart(game.Players.LocalPlayer)
    end
end)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: