Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
- local Window = Rayfield:CreateWindow({
- Name = "DISCONTINUED AS OF 1/11/2026///CONTINUED AS OF 2/21/2026",
- Icon = 0,
- LoadingTitle = "Rayfield Interface Suite",
- LoadingSubtitle = "by Sirius",
- ShowText = "Rayfield",
- Theme = "Default",
- ToggleUIKeybind = "K",
- DisableRayfieldPrompts = false,
- DisableBuildWarnings = false,
- ConfigurationSaving = {
- Enabled = true,
- FolderName = nil,
- FileName = "slommy hub"
- },
- Discord = {
- Enabled = false,
- Invite = "noinvitelink",
- RememberJoins = true
- },
- KeySystem = false,
- KeySettings = {
- Title = "Untitled",
- Subtitle = "Key System",
- Note = "No method of obtaining the key is provided",
- FileName = "Key",
- SaveKey = true,
- GrabKeyFromSite = false,
- Key = {"Hello"}
- }
- })
- local Tab = Window:CreateTab("Auto stuff idk", 4483362458)
- local function AUTOEAT()
- print("PLACE HOLDER")
- end
- local Button = Tab:CreateButton({
- Name = "PLACE HOLDER FOR FUTURE FEATURE",
- Callback = function()
- AUTOEAT()
- end,
- })
- local function LAYHEAL()
- local args = {"Sitting"}
- game:GetService("ReplicatedStorage"):WaitForChild("Rest"):FireServer(unpack(args))
- print("layy heall enabledddd")
- end
- local Button = Tab:CreateButton({
- Name = "Lay Heal",
- Callback = function()
- LAYHEAL()
- Rayfield:Notify({
- Title = "Notice",
- Content = "Dont Lay After enabling ts(pls appear)",
- Duration = 6.5,
- Image = 4483362458,
- })
- end,
- })
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local RunService = game:GetService("RunService")
- -- Variables for neck size
- local neckSize = 25
- local neckConnection = nil
- local trackedNecks = {}
- local isActive = false
- local function autoneck()
- if neckConnection then
- neckConnection:Disconnect()
- neckConnection = nil
- end
- for neckPart, _ in pairs(trackedNecks) do
- if neckPart and neckPart.Parent then
- neckPart:Destroy()
- end
- end
- trackedNecks = {}
- isActive = true
- local function processNeckPart(neckPart, character)
- if character == LocalPlayer.Character then return end
- if neckPart:IsA("BasePart") then
- neckPart.Size = Vector3.new(neckSize, neckSize, neckSize)
- neckPart.Transparency = 0.9
- trackedNecks[neckPart] = character
- end
- end
- local function isDead(character)
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if humanoid then return humanoid.Health <= 0 end
- return false
- end
- local function cleanupDeadNecks()
- for neckPart, character in pairs(trackedNecks) do
- if not neckPart or not neckPart.Parent or not character or not character.Parent or isDead(character) then
- if neckPart and neckPart.Parent then
- neckPart:Destroy()
- end
- trackedNecks[neckPart] = nil
- end
- end
- end
- for _, descendant in pairs(workspace:GetDescendants()) do
- if descendant:IsA("Humanoid") then
- local character = descendant.Parent
- if character and character ~= LocalPlayer.Character then
- local neck = character:FindFirstChild("Neck")
- if neck then processNeckPart(neck, character) end
- for i = 1, 22 do
- local neckPart = character:FindFirstChild("Neck" .. i)
- if neckPart then processNeckPart(neckPart, character) end
- end
- end
- end
- end
- neckConnection = RunService.RenderStepped:Connect(function()
- if not isActive then return end
- cleanupDeadNecks()
- for neckPart, _ in pairs(trackedNecks) do
- if neckPart and neckPart.Parent then
- if neckPart.Size ~= Vector3.new(neckSize, neckSize, neckSize) then
- neckPart.Size = Vector3.new(neckSize, neckSize, neckSize)
- end
- if neckPart.Transparency ~= 0.9 then
- neckPart.Transparency = 0.9
- end
- end
- end
- end)
- workspace.DescendantAdded:Connect(function(descendant)
- if not isActive then return end
- if descendant:IsA("BasePart") then
- local isNeck = descendant.Name == "Neck" or descendant.Name:match("^Neck%d+$")
- if isNeck then
- local character = descendant.Parent
- if character and character ~= LocalPlayer.Character then
- processNeckPart(descendant, character)
- end
- end
- end
- end)
- end
- local Button = Tab:CreateButton({
- Name = "Neck Hurt",
- Callback = function()
- autoneck()
- Rayfield:Notify({
- Title = "Neck Hurt",
- Content = "Enabled - Necks deleted on death",
- Duration = 5,
- Image = 4483362458,
- })
- end,
- })
- local Slider = Tab:CreateSlider({
- Name = "Neck Size",
- Range = {1, 100},
- Increment = 1,
- Suffix = "Studs",
- CurrentValue = 25,
- Flag = "NeckSizeSlider",
- Callback = function(Value)
- neckSize = Value
- end,
- })
- local function AUTOMINIGAME()
- while true do
- game:GetService("ReplicatedStorage"):WaitForChild("AddMinigameCount"):FireServer()
- wait(1.5)
- end
- end
- local Button = Tab:CreateButton({
- Name = "AUTO MINIGAME 1.5sec",
- Callback = function()
- AUTOMINIGAME()
- end,
- })
- -- ========== ESP TAB ==========
- local Tab2 = Window:CreateTab("ESP", 4483362458)
- local ESPEnabled = false
- local MaxDistance = 10000
- local ESPObjects = {}
- local ESPConnections = {}
- local function ClearESP()
- for _, v in pairs(ESPObjects) do
- if v and v.Parent then pcall(function() v:Destroy() end) end
- end
- ESPObjects = {}
- end
- local function CreateESP(CreatureModel)
- if not CreatureModel then return end
- if not CreatureModel.Parent then return end
- if CreatureModel == LocalPlayer.Character then return end
- if CreatureModel.Name == LocalPlayer.Name then return end
- local hrp = CreatureModel:FindFirstChild("HumanoidRootPart")
- if not hrp then return end
- local humanoid = CreatureModel:FindFirstChildOfClass("Humanoid")
- if not humanoid then return end
- local TrueCreature = CreatureModel:FindFirstChild("TrueCreature")
- local CreatureNameVal = CreatureModel:FindFirstChild("CreatureName")
- local CreatureName = ""
- if TrueCreature and TrueCreature:IsA("StringValue") and TrueCreature.Value ~= "" then
- CreatureName = TrueCreature.Value
- elseif CreatureNameVal and CreatureNameVal:IsA("StringValue") and CreatureNameVal.Value ~= "" then
- CreatureName = CreatureNameVal.Value
- else
- return
- end
- local Username = CreatureModel.Name
- local Health = math.floor(humanoid.Health)
- local MaxHealth = math.floor(humanoid.MaxHealth)
- -- Calculate distance from local player
- local Distance = 0
- local myChar = LocalPlayer.Character
- if myChar then
- local myHrp = myChar:FindFirstChild("HumanoidRootPart")
- if myHrp then
- Distance = math.floor((myHrp.Position - hrp.Position).Magnitude)
- end
- end
- local fillColor, outlineColor
- local lowerName = string.lower(CreatureName)
- if string.find(lowerName, "tyrannosaurus") or string.find(lowerName, "rex") then
- fillColor = Color3.fromRGB(255, 80, 80)
- outlineColor = Color3.fromRGB(255, 0, 0)
- elseif string.find(lowerName, "gallimimus") then
- fillColor = Color3.fromRGB(100, 255, 100)
- outlineColor = Color3.fromRGB(0, 255, 0)
- else
- fillColor = Color3.fromRGB(255, 255, 100)
- outlineColor = Color3.fromRGB(255, 255, 0)
- end
- -- Apply highlights to all parts EXCEPT necks
- pcall(function()
- for _, child in pairs(CreatureModel:GetDescendants()) do
- if child:IsA("BasePart") then
- local isNeckPart = child.Name == "Neck" or child.Name:match("^Neck%d+$")
- if not isNeckPart then
- local h = Instance.new("Highlight")
- h.FillTransparency = 0.5
- h.OutlineTransparency = 0.3
- h.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
- h.FillColor = fillColor
- h.OutlineColor = outlineColor
- h.Parent = child
- table.insert(ESPObjects, h)
- end
- end
- end
- end)
- -- Create Billboard
- local success2, Billboard = pcall(function()
- local b = Instance.new("BillboardGui")
- b.Adornee = hrp
- b.Size = UDim2.new(0, 200, 0, 50)
- b.StudsOffset = Vector3.new(0, 5, 0)
- b.AlwaysOnTop = true
- b.MaxDistance = MaxDistance
- b.LightInfluence = 0
- b.Parent = CreatureModel
- local Frame = Instance.new("Frame")
- Frame.Size = UDim2.new(1, 0, 1, 0)
- Frame.BackgroundTransparency = 1
- Frame.Parent = b
- local UIListLayout = Instance.new("UIListLayout")
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Parent = Frame
- -- Creature Name + Health + Distance (TOP)
- local NameLabel = Instance.new("TextLabel")
- NameLabel.BackgroundTransparency = 1
- NameLabel.Size = UDim2.new(1, 0, 0, 18)
- NameLabel.Text = CreatureName .. " [" .. Health .. "/" .. MaxHealth .. "] [Dist:" .. Distance .. "]"
- NameLabel.TextColor3 = Color3.new(1, 1, 1)
- NameLabel.TextStrokeTransparency = 0
- NameLabel.TextStrokeColor3 = Color3.new(0, 0, 0)
- NameLabel.Font = Enum.Font.Code
- NameLabel.TextSize = 14
- NameLabel.LayoutOrder = 1
- NameLabel.Parent = Frame
- -- Username (BELOW)
- local UserLabel = Instance.new("TextLabel")
- UserLabel.BackgroundTransparency = 1
- UserLabel.Size = UDim2.new(1, 0, 0, 18)
- UserLabel.Text = Username
- UserLabel.TextColor3 = Color3.fromRGB(180, 180, 180)
- UserLabel.TextStrokeTransparency = 0
- UserLabel.TextStrokeColor3 = Color3.new(0, 0, 0)
- UserLabel.Font = Enum.Font.Code
- UserLabel.TextSize = 12
- UserLabel.LayoutOrder = 2
- UserLabel.Parent = Frame
- return b
- end)
- if success2 and Billboard then
- table.insert(ESPObjects, Billboard)
- end
- end
- local function ScanAndESP()
- if not ESPEnabled then return end
- ClearESP()
- local scanCoroutine = coroutine.create(function()
- for _, obj in pairs(workspace:GetChildren()) do
- if not ESPEnabled then break end
- if obj:IsA("Model") then
- pcall(function() CreateESP(obj) end)
- end
- wait()
- end
- end)
- coroutine.resume(scanCoroutine)
- end
- local function UpdateMaxDistance(newDistance)
- MaxDistance = newDistance
- for _, obj in pairs(ESPObjects) do
- if obj and obj.Parent and obj:IsA("BillboardGui") then
- obj.MaxDistance = MaxDistance
- end
- end
- end
- local function DisconnectAll()
- for _, conn in pairs(ESPConnections) do
- if conn then pcall(function() conn:Disconnect() end) end
- end
- ESPConnections = {}
- end
- -- Main ESP Toggle
- local ESPToggle = Tab2:CreateToggle({
- Name = "PLAYER ESP",
- CurrentValue = false,
- Flag = "CreatureESP_Main",
- Callback = function(Value)
- ESPEnabled = Value
- if ESPEnabled then
- ScanAndESP()
- local childAddedConn = workspace.ChildAdded:Connect(function(child)
- if not ESPEnabled then return end
- task.wait(1.5)
- if child:IsA("Model") then
- pcall(function() CreateESP(child) end)
- end
- end)
- table.insert(ESPConnections, childAddedConn)
- else
- ClearESP()
- DisconnectAll()
- end
- end,
- })
- -- Max Distance Slider
- local MaxDistanceSlider = Tab2:CreateSlider({
- Name = "ESP Max Distance",
- Range = {100, 20000},
- Increment = 100,
- Suffix = "studs",
- CurrentValue = 10000,
- Flag = "ESP_MaxDistance",
- Callback = function(Value)
- UpdateMaxDistance(Value)
- end,
- })
- -- ===== FOOD ESP =====
- local FoodESPEnabled = false
- local FoodESPObjects = {}
- local FoodConnections = {}
- local function ClearFoodESP()
- for _, v in pairs(FoodESPObjects) do
- if v and v.Parent then pcall(function() v:Destroy() end) end
- end
- FoodESPObjects = {}
- end
- local function CreateFoodESP(FoodModel)
- if not FoodModel or not FoodModel.Parent then return end
- local CreatureName = FoodModel:FindFirstChild("CreatureName")
- local isCorpse = CreatureName ~= nil
- local EdibleBush = FoodModel:FindFirstChild("EdibleBush")
- local isFruit = EdibleBush and EdibleBush:FindFirstChild("IsFruit")
- if not isCorpse and not isFruit then return end
- local RootPart = FoodModel:FindFirstChild("HumanoidRootPart") or FoodModel:FindFirstChildWhichIsA("BasePart")
- if not RootPart then return end
- local fillColor, outlineColor, labelText
- if isCorpse then
- fillColor = Color3.fromRGB(200, 50, 50)
- outlineColor = Color3.fromRGB(150, 0, 0)
- labelText = CreatureName:IsA("StringValue") and ("Corpse: " .. CreatureName.Value) or "Corpse"
- else
- fillColor = Color3.fromRGB(255, 100, 255)
- outlineColor = Color3.fromRGB(200, 0, 200)
- labelText = "Fruit"
- end
- pcall(function()
- local Highlight = Instance.new("Highlight")
- Highlight.FillTransparency = 0.5
- Highlight.OutlineTransparency = 0.3
- Highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
- Highlight.FillColor = fillColor
- Highlight.OutlineColor = outlineColor
- Highlight.Parent = FoodModel
- table.insert(FoodESPObjects, Highlight)
- end)
- pcall(function()
- local Billboard = Instance.new("BillboardGui")
- Billboard.Adornee = RootPart
- Billboard.Size = UDim2.new(0, 150, 0, 20)
- Billboard.StudsOffset = Vector3.new(0, 3, 0)
- Billboard.AlwaysOnTop = true
- Billboard.MaxDistance = 700
- Billboard.LightInfluence = 0
- Billboard.Parent = FoodModel
- local NameLabel = Instance.new("TextLabel")
- NameLabel.BackgroundTransparency = 1
- NameLabel.Size = UDim2.new(1, 0, 1, 0)
- NameLabel.Text = labelText
- NameLabel.TextColor3 = Color3.new(1, 1, 1)
- NameLabel.TextStrokeTransparency = 0
- NameLabel.TextStrokeColor3 = Color3.new(0, 0, 0)
- NameLabel.Font = Enum.Font.Code
- NameLabel.TextSize = 14
- NameLabel.Parent = Billboard
- table.insert(FoodESPObjects, Billboard)
- end)
- end
- local function ScanAndFoodESP()
- if not FoodESPEnabled then return end
- ClearFoodESP()
- local FoodFolder = workspace:FindFirstChild("Food")
- if not FoodFolder then return end
- for _, obj in pairs(FoodFolder:GetChildren()) do
- if not FoodESPEnabled then break end
- if obj:IsA("Model") then
- pcall(function() CreateFoodESP(obj) end)
- end
- end
- end
- local function DisconnectFoodESP()
- for _, conn in pairs(FoodConnections) do
- if conn then pcall(function() conn:Disconnect() end) end
- end
- FoodConnections = {}
- end
- -- Food ESP Toggle
- local FoodESPToggle = Tab2:CreateToggle({
- Name = "Food ESP",
- CurrentValue = false,
- Flag = "FoodESP_Main",
- Callback = function(Value)
- FoodESPEnabled = Value
- if FoodESPEnabled then
- ScanAndFoodESP()
- local FoodFolder = workspace:FindFirstChild("Food")
- if FoodFolder then
- local childAddedConn = FoodFolder.ChildAdded:Connect(function(child)
- if not FoodESPEnabled then return end
- task.wait(0.5)
- if child:IsA("Model") then
- pcall(function() CreateFoodESP(child) end)
- end
- end)
- table.insert(FoodConnections, childAddedConn)
- end
- else
- ClearFoodESP()
- DisconnectFoodESP()
- end
- end,
- })
- print("Script loaded!")
Advertisement
Add Comment
Please, Sign In to add comment