Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save robloxluakrnlaccount/6e657b709698abf6f3b3726e72211255 to your computer and use it in GitHub Desktop.

Select an option

Save robloxluakrnlaccount/6e657b709698abf6f3b3726e72211255 to your computer and use it in GitHub Desktop.
Rayfield upcoming beta testing
-- WalkFling (Exploit-Only Version)
-- Requires SetNetworkOwner support
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local localPlayer = Players.LocalPlayer
local flingActive = false
local conn
-- Toggle function
local function toggleFling()
flingActive = not flingActive
if flingActive then
local char = localPlayer.Character
if not char then return end
local hrp = char:FindFirstChild("HumanoidRootPart")
if not hrp then return end
-- Force network ownership to yourself
if hrp.SetNetworkOwner then
hrp:SetNetworkOwner(localPlayer)
end
-- Apply high velocities continuously
conn = RunService.Heartbeat:Connect(function()
if not char or not hrp then return end
-- Optional: only push RootPart and limbs
for _, part in pairs(char:GetDescendants()) do
if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
part.AssemblyLinearVelocity = Vector3.new(1e9,1e9,1e9)
part.AssemblyAngularVelocity = Vector3.new(1e9,1e9,1e9)
end
end
end)
print("WalkFling enabled!")
else
-- Disconnect and reset
if conn then conn:Disconnect() end
conn = nil
local char = localPlayer.Character
if char then
for _, part in pairs(char:GetDescendants()) do
if part:IsA("BasePart") then
part.AssemblyLinearVelocity = Vector3.zero
part.AssemblyAngularVelocity = Vector3.zero
end
end
end
print("WalkFling disabled!")
end
end
-- Example toggle via key press (F)
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, processed)
if processed then return end
if input.KeyCode == Enum.KeyCode.F then
toggleFling()
end
end)
@02maricarfelices-create

Players.LocalPlayer

@02maricarfelices-create
  • WalkFling (Exploit-Only Version)
    -- Requires SetNetworkOwner support

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

local localPlayer = Players.LocalPlayer
local flingActive = false
local conn

-- Toggle function
local function toggleFling()
flingActive = not flingActive

if flingActive then
    local char = localPlayer.Character
    if not char then return end
    local hrp = char:FindFirstChild("HumanoidRootPart")
    if not hrp then return end

    -- Force network ownership to yourself
    if hrp.SetNetworkOwner then
        hrp:SetNetworkOwner(localPlayer)
    end

    -- Apply high velocities continuously
    conn = RunService.Heartbeat:Connect(function()
        if not char or not hrp then return end

        -- Optional: only push RootPart and limbs
        for _, part in pairs(char:GetDescendants()) do
            if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
                part.AssemblyLinearVelocity = Vector3.new(1e9,1e9,1e9)
                part.AssemblyAngularVelocity = Vector3.new(1e9,1e9,1e9)
            end
        end
    end)

    print("WalkFling enabled!")
else
    -- Disconnect and reset
    if conn then conn:Disconnect() end
    conn = nil

    local char = localPlayer.Character
    if char then
        for _, part in pairs(char:GetDescendants()) do
            if part:IsA("BasePart") then
                part.AssemblyLinearVelocity = Vector3.zero
                part.AssemblyAngularVelocity = Vector3.zero
            end
        end
    end
    print("WalkFling disabled!")
end

end

-- Example toggle via key press (F)
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, processed)
if processed then return end
if input.KeyCode == Enum.KeyCode.F then
toggleFling()
end
end)
Comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment