local Rayfield = loadstring(game:HttpGet("https://sirius.menu/gen2"))() local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") local LocalPlayer = Players.LocalPlayer --------------------------------------------------------------------- config u dawg local CONFIG = { Font = Enum.Font.Michroma, TextSize = 13, MaxDistance = 1500, -- labels hidden beyond this many studs UpdateRate = 0.2, -- seconds between distance updates Monster = { Fill = Color3.fromRGB(255, 30, 30), Outline = Color3.fromRGB(255, 120, 120), Text = Color3.fromRGB(255, 90, 90), }, Player = { Fill = Color3.fromRGB(0, 200, 255), Outline = Color3.fromRGB(150, 235, 255), Text = Color3.fromRGB(150, 235, 255), }, Interference = { Fill = Color3.fromRGB(0, 120, 255), Outline = Color3.fromRGB(110, 180, 255), Text = Color3.fromRGB(110, 180, 255), }, } local TELEPORTS = { { section = "Safe Cabin", spots = { { "Cabin", Vector3.new(367, 55, 426) }, }, }, { section = "Bunker", spots = { { "Bunker", Vector3.new(-260, 61, 62) }, { "Bunker Entrance", Vector3.new(-117, 105, -108) }, }, }, { section = "Transformers", spots = { { "Power Sourcer 1", Vector3.new(155, 198, -313) }, { "Power Sourcer 2", Vector3.new(318, 168, -42) }, { "Power Sourcer 3", Vector3.new(-176, 217, 32) }, }, }, { section = "Important", spots = { { "Radio Tower", Vector3.new(1204, 271, -115) }, }, }, { section = "Fuel", spots = { { "Get Jerry can thing", Vector3.new(-509, 68, 373) }, { "Fuel Refill", Vector3.new(-532, 73, 341) }, }, }, } --------------------------------------------------------------------- ui local window = Rayfield:CreateWindow({ name = "Dead Shore", subtitle = "Rayfield Gen2", sidebarLayout = true, }) --------------------------------------------------------------------- core of le esp local container = Instance.new("Folder") container.Name = "DeadShoreESP" if not pcall(function() container.Parent = (gethui and gethui()) or game:GetService("CoreGui") end) then container.Parent = LocalPlayer:WaitForChild("PlayerGui") end local function getRoot(char) return char and char:FindFirstChild("HumanoidRootPart") end local function getAdorneePart(model) if model:IsA("BasePart") then return model end if model:IsA("Model") and model.PrimaryPart then return model.PrimaryPart end return model:FindFirstChild("HumanoidRootPart") or model:FindFirstChild("Head") or model:FindFirstChildWhichIsA("BasePart", true) end local trackers = {} local function createTracker(colors) local tracker = { enabled = false, items = {}, colors = colors } function tracker:Remove(model) local item = self.items[model] if not item then return end self.items[model] = nil item.highlight:Destroy() item.gui:Destroy() item.conn:Disconnect() end function tracker:Add(model) if not self.enabled or self.items[model] then return end if self.filter and not self.filter(model) then return end local highlight = Instance.new("Highlight") highlight.FillColor = colors.Fill highlight.OutlineColor = colors.Outline highlight.FillTransparency = 0.6 highlight.OutlineTransparency = 0 highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop highlight.Adornee = model highlight.Parent = container local gui = Instance.new("BillboardGui") gui.Size = UDim2.fromOffset(180, 20) -- fixed pixel size, never gets huge gui.StudsOffsetWorldSpace = Vector3.new(0, 3, 0) gui.AlwaysOnTop = true gui.LightInfluence = 0 gui.MaxDistance = CONFIG.MaxDistance gui.ResetOnSpawn = false gui.Parent = container local label = Instance.new("TextLabel") label.Size = UDim2.fromScale(1, 1) label.BackgroundTransparency = 1 label.Text = model.Name label.Font = CONFIG.Font label.TextSize = CONFIG.TextSize label.TextColor3 = colors.Text label.TextStrokeColor3 = Color3.new(0, 0, 0) label.TextStrokeTransparency = 0.4 label.Parent = gui local item = { highlight = highlight, gui = gui, label = label, name = model.Name, part = nil, } item.conn = model.AncestryChanged:Connect(function(_, parent) if not parent then self:Remove(model) end end) self.items[model] = item -- the part to measure from / attach the label to may load late task.spawn(function() for _ = 1, 20 do if self.items[model] ~= item then return end local part = getAdorneePart(model) if part then item.part = part gui.Adornee = part return end task.wait(0.25) end end) end function tracker:Clear() for model in pairs(self.items) do self:Remove(model) end end table.insert(trackers, tracker) return tracker end -- loop for esp when esp is on task.spawn(function() while true do task.wait(CONFIG.UpdateRate) local root = getRoot(LocalPlayer.Character) if root then local origin = root.Position for _, tracker in ipairs(trackers) do if tracker.enabled then for _, item in pairs(tracker.items) do local part = item.part if part and part.Parent then local dist = math.floor((part.Position - origin).Magnitude) item.label.Text = string.format("%s [%d studs]", item.name, dist) end end end end end end end) --------------------------------------------------------------------- monsters ( located in workspace.watchers) local monsterTracker = createTracker(CONFIG.Monster) local watchersFolder local watcherConns = {} local function disconnectWatchers() for _, c in ipairs(watcherConns) do c:Disconnect() end table.clear(watcherConns) end local function bindWatchers(folder) disconnectWatchers() watchersFolder = folder if not folder then return end for _, monster in ipairs(folder:GetChildren()) do monsterTracker:Add(monster) end table.insert(watcherConns, folder.ChildAdded:Connect(function(monster) monsterTracker:Add(monster) end)) table.insert(watcherConns, folder.ChildRemoved:Connect(function(monster) monsterTracker:Remove(monster) end)) end -- 1 second check just incase the watchers folder is replaced or uhh tite task.spawn(function() while true do local folder = Workspace:FindFirstChild("Watchers") if folder ~= watchersFolder then monsterTracker:Clear() bindWatchers(folder) end task.wait(1) end end) --------------------------------------------------------------------- interferences (workspace.Interferences) local interferenceTracker = createTracker(CONFIG.Interference) -- anything named "Part" is skipped interferenceTracker.filter = function(thing) return thing.Name ~= "Part" end local interferenceFolder local interferenceConns = {} local function disconnectInterferences() for _, c in ipairs(interferenceConns) do c:Disconnect() end table.clear(interferenceConns) end local function bindInterferences(folder) disconnectInterferences() interferenceFolder = folder if not folder then return end for _, thing in ipairs(folder:GetChildren()) do interferenceTracker:Add(thing) end table.insert(interferenceConns, folder.ChildAdded:Connect(function(thing) interferenceTracker:Add(thing) end)) table.insert(interferenceConns, folder.ChildRemoved:Connect(function(thing) interferenceTracker:Remove(thing) end)) end -- keeps searching so it still works if the folder is missing at first or gets replaced task.spawn(function() while true do local folder = Workspace:FindFirstChild("Interferences") if folder ~= interferenceFolder then interferenceTracker:Clear() bindInterferences(folder) end task.wait(1) end end) --------------------------------------------------------------------- playerz local playerTracker = createTracker(CONFIG.Player) local playerConns = {} local function watchPlayer(player) if player == LocalPlayer or playerConns[player] then return end local conns = {} playerConns[player] = conns if player.Character then playerTracker:Add(player.Character) end table.insert(conns, player.CharacterAdded:Connect(function(char) playerTracker:Add(char) end)) table.insert(conns, player.CharacterRemoving:Connect(function(char) playerTracker:Remove(char) end)) end for _, player in ipairs(Players:GetPlayers()) do watchPlayer(player) end Players.PlayerAdded:Connect(watchPlayer) Players.PlayerRemoving:Connect(function(player) local conns = playerConns[player] if conns then for _, c in ipairs(conns) do c:Disconnect() end playerConns[player] = nil end if player.Character then playerTracker:Remove(player.Character) end end) --------------------------------------------------------------------- main tab local mainTab = window:CreateTab({ name = "Main" }) local NOTE_TEXT = "you have to power the transformers first before teleporting to the bunker entrance." mainTab:CreateText({ name = "Note", text = NOTE_TEXT, }) local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Lighting = game:GetService("Lighting") -- tries the table form first, falls back to the plain string form local function addSection(tab, title) if not pcall(function() tab:CreateSection({ name = title, title = title, Name = title }) end) then pcall(function() tab:CreateSection(title) end) end end -- fullbright local fullbrightConn local fullbrightOriginal addSection(mainTab, "Fullbright") mainTab:CreateToggle({ name = "Fullbright", callback = function(value) if fullbrightConn then fullbrightConn:Disconnect() fullbrightConn = nil end if value then fullbrightOriginal = { Brightness = Lighting.Brightness, ClockTime = Lighting.ClockTime, GlobalShadows = Lighting.GlobalShadows, Ambient = Lighting.Ambient, OutdoorAmbient = Lighting.OutdoorAmbient, } fullbrightConn = RunService.RenderStepped:Connect(function() Lighting.Brightness = 2 Lighting.ClockTime = 14 Lighting.GlobalShadows = false Lighting.Ambient = Color3.fromRGB(178, 178, 178) Lighting.OutdoorAmbient = Color3.fromRGB(178, 178, 178) end) elseif fullbrightOriginal then for property, original in pairs(fullbrightOriginal) do Lighting[property] = original end fullbrightOriginal = nil end end, }) -- no fog local noFogConn local noFogOriginal local noFogAtmospheres = {} addSection(mainTab, "No Fog") mainTab:CreateToggle({ name = "No Fog", callback = function(value) if noFogConn then noFogConn:Disconnect() noFogConn = nil end if value then noFogOriginal = { FogStart = Lighting.FogStart, FogEnd = Lighting.FogEnd } table.clear(noFogAtmospheres) noFogConn = RunService.RenderStepped:Connect(function() Lighting.FogStart = 0 Lighting.FogEnd = 9e9 for _, child in ipairs(Lighting:GetChildren()) do if child:IsA("Atmosphere") then if not noFogAtmospheres[child] then noFogAtmospheres[child] = { Density = child.Density, Haze = child.Haze } end child.Density = 0 child.Haze = 0 end end end) elseif noFogOriginal then Lighting.FogStart = noFogOriginal.FogStart Lighting.FogEnd = noFogOriginal.FogEnd noFogOriginal = nil for atmosphere, original in pairs(noFogAtmospheres) do if atmosphere.Parent then atmosphere.Density = original.Density atmosphere.Haze = original.Haze end end table.clear(noFogAtmospheres) end end, }) --------------------------------------------------------------------- player tab local playerTab = window:CreateTab({ name = "Player" }) local PLAYER = { Speed = { enabled = false, value = 50, original = nil }, Jump = { enabled = false, value = 50, originalPower = nil, originalUse = nil }, Fly = { enabled = false, value = 100 }, } local function getHumanoid(char) return char and char:FindFirstChildOfClass("Humanoid") end -- speed stuff n jump power,re-applied every frame so the game can't reset them RunService.Heartbeat:Connect(function() local hum = getHumanoid(LocalPlayer.Character) if not hum then return end if PLAYER.Speed.enabled then hum.WalkSpeed = PLAYER.Speed.value end if PLAYER.Jump.enabled then hum.UseJumpPower = true hum.JumpPower = PLAYER.Jump.value end end) -- seat fly, a invis seat is welded to your FAT ass and the seat is what gets moved local flyObjects local flyConn local function stopFly() if flyConn then flyConn:Disconnect() flyConn = nil end if flyObjects then for _, obj in ipairs(flyObjects) do obj:Destroy() end flyObjects = nil end local hum = getHumanoid(LocalPlayer.Character) if hum then hum.Sit = false hum:ChangeState(Enum.HumanoidStateType.GettingUp) end end local function startFly() stopFly() local char = LocalPlayer.Character local root, hum = getRoot(char), getHumanoid(char) if not root or not hum then return end local seat = Instance.new("Seat") seat.Name = "FlySeat" seat.Size = Vector3.new(2, 1, 2) seat.Transparency = 1 seat.CanCollide = false seat.CFrame = root.CFrame seat.Parent = Workspace local weld = Instance.new("Weld") weld.Part0 = seat weld.Part1 = root weld.Parent = seat local bv = Instance.new("BodyVelocity") bv.MaxForce = Vector3.new(1e9, 1e9, 1e9) bv.Velocity = Vector3.zero bv.Parent = seat local bg = Instance.new("BodyGyro") bg.MaxTorque = Vector3.new(1e9, 1e9, 1e9) bg.P = 9e4 bg.CFrame = seat.CFrame bg.Parent = seat flyObjects = { seat, weld, bv, bg } hum.Sit = true -- the games own movement controls (works with keyboard, gamepad and mobile dee bice) local controls pcall(function() controls = require(LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls() end) flyConn = RunService.RenderStepped:Connect(function() if not seat.Parent then stopFly() return end local cam = Workspace.CurrentCamera local move = controls and controls:GetMoveVector() or Vector3.zero local dir = cam.CFrame:VectorToWorldSpace(move) if UserInputService:IsKeyDown(Enum.KeyCode.Space) then dir += Vector3.yAxis end if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then dir -= Vector3.yAxis end if dir.Magnitude > 1 then dir = dir.Unit end bv.Velocity = dir * PLAYER.Fly.value bg.CFrame = CFrame.lookAt(seat.Position, seat.Position + cam.CFrame.LookVector) if not hum.Sit then hum.Sit = true end end) end LocalPlayer.CharacterAdded:Connect(function() if PLAYER.Fly.enabled then task.wait(1) if PLAYER.Fly.enabled then startFly() end end end) -- speed playerTab:CreateToggle({ name = "Speed", callback = function(value) PLAYER.Speed.enabled = value local hum = getHumanoid(LocalPlayer.Character) if not hum then return end if value then PLAYER.Speed.original = hum.WalkSpeed elseif PLAYER.Speed.original then hum.WalkSpeed = PLAYER.Speed.original end end, }) playerTab:CreateSlider({ name = "Speed Amount", range = { 0, 650 }, increment = 1, value = 50, callback = function(value) PLAYER.Speed.value = value end, }) -- jump power playerTab:CreateToggle({ name = "Jump Power", callback = function(value) PLAYER.Jump.enabled = value local hum = getHumanoid(LocalPlayer.Character) if not hum then return end if value then PLAYER.Jump.originalPower = hum.JumpPower PLAYER.Jump.originalUse = hum.UseJumpPower elseif PLAYER.Jump.originalPower then hum.UseJumpPower = PLAYER.Jump.originalUse hum.JumpPower = PLAYER.Jump.originalPower end end, }) playerTab:CreateSlider({ name = "Jump Power Amount", range = { 0, 65 }, increment = 1, value = 50, callback = function(value) PLAYER.Jump.value = value end, }) -- fly playerTab:CreateToggle({ name = "Fly", callback = function(value) PLAYER.Fly.enabled = value if value then startFly() else stopFly() end end, }) playerTab:CreateSlider({ name = "Fly Speed", range = { 0, 1000 }, increment = 1, value = 100, callback = function(value) PLAYER.Fly.value = value end, }) --------------------------------------------------------------------- esp bro i guess bro local espTab = window:CreateTab({ name = "ESP" }) espTab:CreateToggle({ name = "Monster ESP", callback = function(value) monsterTracker.enabled = value if value then if watchersFolder then for _, monster in ipairs(watchersFolder:GetChildren()) do monsterTracker:Add(monster) end end else monsterTracker:Clear() end end, }) espTab:CreateToggle({ name = "Player ESP", callback = function(value) playerTracker.enabled = value if value then for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character then playerTracker:Add(player.Character) end end else playerTracker:Clear() end end, }) espTab:CreateToggle({ name = "Interference ESP", callback = function(value) interferenceTracker.enabled = value if value then if interferenceFolder then for _, thing in ipairs(interferenceFolder:GetChildren()) do interferenceTracker:Add(thing) end end else interferenceTracker:Clear() end end, }) --------------------------------------------------------------------- super good tp tab local teleportTab = window:CreateTab({ name = "Teleport" }) local function teleportTo(position) local char = LocalPlayer.Character local root = getRoot(char) if not root then window:Notify({ title = "Teleport", content = "Your character isn't loaded yet." }) return end root.AssemblyLinearVelocity = Vector3.zero char:PivotTo(CFrame.new(position)) end for _, group in ipairs(TELEPORTS) do addSection(teleportTab, group.section) for _, spot in ipairs(group.spots) do local name, position = spot[1], spot[2] teleportTab:CreateButton({ name = name, callback = function() teleportTo(position) end, }) end end