Hide or Die Script
Key Required

Hide or Die Script

💀 Hide or Die!GreenVR512YTGreenVR512YT 2.2K views 578 executesUpdated Mar 2, 2026
5.0/ 5(1 votes)
10100% Positive
Lua Script•375 lines (8704 chars)
--[[
    GreenVR512 Rayfield Hub
    FULL BUILD — Combat • Visuals • Misc • Fun & Utility
]]

------------------------------------------------
-- LOAD UI
------------------------------------------------

local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()

local Window = Rayfield:CreateWindow({
	Name = "GreenVR512 Hub",
	LoadingTitle = "GreenVR512 Interface",
	LoadingSubtitle = "Full Rayfield UI",
	KeySystem = false
})

------------------------------------------------
-- CREATE TABS
------------------------------------------------

local CombatTab = Window:CreateTab("Combat")
local VisualTab = Window:CreateTab("Visuals")
local MiscTab   = Window:CreateTab("Misc")
local FunTab    = Window:CreateTab("Fun & Utility")

CombatTab:CreateSection("Combat")
VisualTab:CreateSection("Visuals")
MiscTab:CreateSection("Utilities")
FunTab:CreateSection("Fun Controls")

------------------------------------------------
-- SERVICES
------------------------------------------------

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local TeleportService = game:GetService("TeleportService")
local UserInputService = game:GetService("UserInputService")
local VirtualUser = game:GetService("VirtualUser")
local Lighting = game:GetService("Lighting")

local lp = Players.LocalPlayer
local camera = workspace.CurrentCamera

------------------------------------------------
-- VARIABLES
------------------------------------------------

local AimEnabled = false
local ESPEnabled = false
local ESPObjects = {}
local Noclip = false
local InfiniteJump = false
local FlyEnabled = false
local FlySpeed = 60

------------------------------------------------
-- AIMBOT
------------------------------------------------

local function getClosestPlayer()
	local mouse = lp:GetMouse()
	local mp = Vector2.new(mouse.X, mouse.Y)
	local best, dist = nil, math.huge

	for _, p in ipairs(Players:GetPlayers()) do
		if p == lp or not p.Character then continue end
		local hum = p.Character:FindFirstChildOfClass("Humanoid")
		local root = p.Character:FindFirstChild("HumanoidRootPart")
		if not hum or not root or hum.Health <= 0 then continue end

		local pos, vis = camera:WorldToScreenPoint(root.Position)
		if vis then
			local d = (Vector2.new(pos.X, pos.Y) - mp).Magnitude
			if d < dist then
				dist = d
				best = root
			end
		end
	end

	return best
end

RunService.RenderStepped:Connect(function()
	if not AimEnabled then return end
	local target = getClosestPlayer()
	if target then
		camera.CFrame = CFrame.lookAt(camera.CFrame.Position, target.Position)
	end
end)

------------------------------------------------
-- FOV CIRCLE
------------------------------------------------

local FOV = Drawing.new("Circle")
FOV.Thickness = 2
FOV.NumSides = 64
FOV.Radius = 150
FOV.Filled = false
FOV.Visible = false
FOV.Color = Color3.fromRGB(0,255,150)

RunService.RenderStepped:Connect(function()
	local mouse = lp:GetMouse()
	FOV.Position = Vector2.new(mouse.X, mouse.Y + 36)
end)

------------------------------------------------
-- WALL ESP
------------------------------------------------

local function CreateESP(player)
	if player == lp then return end

	local function Apply(char)
		if ESPObjects[player] then
			ESPObjects[player]:Destroy()
		end

		local h = Instance.new("Highlight")
		h.FillTransparency = 0.5
		h.OutlineTransparency = 0
		h.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
		h.Parent = char

		ESPObjects[player] = h
	end

	if player.Character then Apply(player.Character) end
	player.CharacterAdded:Connect(Apply)
end

local function ClearESP()
	for _, esp in pairs(ESPObjects) do
		if esp then esp:Destroy() end
	end
	table.clear(ESPObjects)
end

------------------------------------------------
-- ANTI AFK
------------------------------------------------

lp.Idled:Connect(function()
	VirtualUser:Button2Down(Vector2.new(0,0), camera.CFrame)
	task.wait(1)
	VirtualUser:Button2Up(Vector2.new(0,0), camera.CFrame)
end)

------------------------------------------------
-- NOCLIP
------------------------------------------------

RunService.Stepped:Connect(function()
	if Noclip and lp.Character then
		for _, v in pairs(lp.Character:GetDescendants()) do
			if v:IsA("BasePart") then
				v.CanCollide = false
			end
		end
	end
end)

------------------------------------------------
-- INFINITE JUMP
------------------------------------------------

UserInputService.JumpRequest:Connect(function()
	if InfiniteJump and lp.Character then
		local hum = lp.Character:FindFirstChildOfClass("Humanoid")
		if hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end
	end
end)

------------------------------------------------
-- FLY
------------------------------------------------

local BV, BG

local function Fly()
	if not lp.Character then return end
	local hrp = lp.Character:FindFirstChild("HumanoidRootPart")
	if not hrp then return end

	BV = Instance.new("BodyVelocity", hrp)
	BG = Instance.new("BodyGyro", hrp)

	BV.MaxForce = Vector3.new(9e9,9e9,9e9)
	BG.MaxTorque = Vector3.new(9e9,9e9,9e9)

	RunService.RenderStepped:Connect(function()
		if FlyEnabled then
			local dir = Vector3.zero
			if UserInputService:IsKeyDown(Enum.KeyCode.W) then dir += camera.CFrame.LookVector end
			if UserInputService:IsKeyDown(Enum.KeyCode.S) then dir -= camera.CFrame.LookVector end
			if UserInputService:IsKeyDown(Enum.KeyCode.A) then dir -= camera.CFrame.RightVector end
			if UserInputService:IsKeyDown(Enum.KeyCode.D) then dir += camera.CFrame.RightVector end
			BV.Velocity = dir * FlySpeed
			BG.CFrame = camera.CFrame
		end
	end)
end

------------------------------------------------
-- UI CONTROLS
------------------------------------------------

CombatTab:CreateToggle({
	Name = "Enable Aimbot",
	CurrentValue = false,
	Callback = function(v)
		AimEnabled = v
	end
})

VisualTab:CreateToggle({
	Name = "Show FOV Circle",
	CurrentValue = false,
	Callback = function(v)
		FOV.Visible = v
	end
})

VisualTab:CreateSlider({
	Name = "FOV Radius",
	Range = {50, 400},
	Increment = 5,
	CurrentValue = 150,
	Callback = function(v)
		FOV.Radius = v
	end
})

VisualTab:CreateToggle({
	Name = "Wall ESP",
	CurrentValue = false,
	Callback = function(v)
		ESPEnabled = v
		if v then
			for _, p in ipairs(Players:GetPlayers()) do
				CreateESP(p)
			end
		else
			ClearESP()
		end
	end
})

MiscTab:CreateSlider({
	Name = "WalkSpeed",
	Range = {16, 120},
	Increment = 1,
	CurrentValue = 16,
	Callback = function(v)
		if lp.Character then
			lp.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = v
		end
	end
})

MiscTab:CreateSlider({
	Name = "JumpPower",
	Range = {50, 200},
	Increment = 5,
	CurrentValue = 50,
	Callback = function(v)
		if lp.Character then
			lp.Character:FindFirstChildOfClass("Humanoid").JumpPower = v
		end
	end
})

MiscTab:CreateButton({
	Name = "Rejoin Server",
	Callback = function()
		TeleportService:Teleport(game.PlaceId, lp)
	end
})

MiscTab:CreateButton({
	Name = "Server Hop",
	Callback = function()
		local servers = game.HttpService:JSONDecode(game:HttpGet(
			"https://games.roblox.com/v1/games/"..game.PlaceId.."/servers/Public?sortOrder=Asc&limit=100"
		))
		for _, s in ipairs(servers.data) do
			if s.playing < s.maxPlayers then
				TeleportService:TeleportToPlaceInstance(game.PlaceId, s.id, lp)
				break
			end
		end
	end
})

FunTab:CreateToggle({
	Name = "Infinite Jump",
	CurrentValue = false,
	Callback = function(v)
		InfiniteJump = v
	end
})

FunTab:CreateToggle({
	Name = "Noclip",
	CurrentValue = false,
	Callback = function(v)
		Noclip = v
	end
})

FunTab:CreateToggle({
	Name = "Fly",
	CurrentValue = false,
	Callback = function(v)
		FlyEnabled = v
		if v then Fly() end
		if not v and BV and BG then
			BV:Destroy()
			BG:Destroy()
		end
	end
})

FunTab:CreateToggle({
	Name = "FullBright",
	CurrentValue = false,
	Callback = function(v)
		if v then
			Lighting.Brightness = 5
			Lighting.ClockTime = 14
			Lighting.FogEnd = 1e5
		else
			Lighting.Brightness = 2
		end
	end
})

FunTab:CreateSlider({
	Name = "Camera FOV",
	Range = {30, 120},
	Increment = 1,
	CurrentValue = camera.FieldOfView,
	Callback = function(v)
		camera.FieldOfView = v
	end
})

FunTab:CreateButton({
	Name = "Refresh Character",
	Callback = function()
		lp:LoadCharacter()
	end
})

------------------------------------------------
-- UI TOGGLE KEY
------------------------------------------------

local visible = true
UserInputService.InputBegan:Connect(function(i,g)
	if g then return end
	if i.KeyCode == Enum.KeyCode.RightShift then
		visible = not visible
		Rayfield:SetVisibility(visible)
	end
end)

------------------------------------------------
-- END
------------------------------------------------

Features & Information

✔ Combat tab (Aimbot) ✔ Visuals tab (Wall ESP + FOV Circle + sliders) ✔ Misc tab (movement + server + utility tools) ✔ Fun & Utility tab (fullbright, noclip, fly, infinite jump, etc.)

Community Comments (1)

elijahyoungdelijahyoungdApr 18, 2026

W script

More Scripts for 💀 Hide or Die!