
Key RequiredUniversal

local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
---------------------------------------------------------
-- 1. SCREEN GUI & MAIN FRAME
---------------------------------------------------------
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "UniversalGodModeGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = playerGui
local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.Size = UDim2.new(0, 260, 0, 150)
mainFrame.Position = UDim2.new(0.5, -130, 0.3, 0)
mainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 25)
mainFrame.BackgroundTransparency = 0.25
mainFrame.BorderSizePixel = 0
mainFrame.Active = true
mainFrame.Parent = screenGui
local frameCorner = Instance.new("UICorner")
frameCorner.CornerRadius = UDim.new(0, 10)
frameCorner.Parent = mainFrame
local titleLabel = Instance.new("TextLabel")
titleLabel.Name = "TitleLabel"
titleLabel.Size = UDim2.new(1, 0, 0, 35)
titleLabel.Position = UDim2.new(0, 0, 0, 5)
titleLabel.BackgroundTransparency = 1
titleLabel.Text = "God Mode Script Universal"
titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
titleLabel.Font = Enum.Font.SourceSansBold
titleLabel.TextSize = 16
titleLabel.Parent = mainFrame
local godBtn = Instance.new("TextButton")
godBtn.Name = "GodModeButton"
godBtn.Size = UDim2.new(0, 180, 0, 42)
godBtn.Position = UDim2.new(0.5, -90, 0, 48)
godBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
godBtn.Text = "God Mode: OFF"
godBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
godBtn.Font = Enum.Font.SourceSansBold
godBtn.TextSize = 16
godBtn.Parent = mainFrame
local btnCorner = Instance.new("UICorner")
btnCorner.CornerRadius = UDim.new(0, 6)
btnCorner.Parent = godBtn
local creditLabel = Instance.new("TextLabel")
creditLabel.Name = "CreditLabel"
creditLabel.Size = UDim2.new(1, 0, 0, 25)
creditLabel.Position = UDim2.new(0, 0, 1, -30)
creditLabel.BackgroundTransparency = 1
creditLabel.Text = "Made By MyntyPaws! on Tiktok"
creditLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
creditLabel.Font = Enum.Font.SourceSans
creditLabel.TextSize = 13
creditLabel.Parent = mainFrame
---------------------------------------------------------
-- 2. LOGIKA GOD MODE (ANTI PUkUL & ANTI DAMAGE)
---------------------------------------------------------
local isGodMode = false
local godLoop = nil
local function applyGodMode()
local char = player.Character
if not char then return end
local hum = char:FindFirstChildOfClass("Humanoid")
if hum then
hum.MaxHealth = math.huge
hum.Health = math.huge
if hum:GetState() == Enum.HumanoidStateType.Dead then
hum:ChangeState(Enum.HumanoidStateType.Running)
end
end
-- Mencegah trigger damage dari bagian tubuh
for _, part in ipairs(char:GetChildren()) do
if part:IsA("BasePart") then
part.CanTouch = false
end
end
end
local function disableGodMode()
local char = player.Character
if not char then return end
local hum = char:FindFirstChildOfClass("Humanoid")
if hum then
hum.MaxHealth = 100
hum.Health = 100
end
for _, part in ipairs(char:GetChildren()) do
if part:IsA("BasePart") then
part.CanTouch = true
end
end
end
godBtn.MouseButton1Click:Connect(function()
isGodMode = not isGodMode
if isGodMode then
godBtn.Text = "God Mode: ON"
if godLoop then godLoop:Disconnect() end
godLoop = RunService.RenderStepped:Connect(function()
if isGodMode then
applyGodMode()
end
end)
else
godBtn.Text = "God Mode: OFF"
if godLoop then
godLoop:Disconnect()
godLoop = nil
end
disableGodMode()
end
end)
player.CharacterAdded:Connect(function()
if isGodMode then
task.wait(0.5)
applyGodMode()
end
end)
---------------------------------------------------------
-- 3. PERBAIKAN FITUR DRAG (GESER PANEL)
---------------------------------------------------------
local dragging = false
local dragStart = nil
local startPos = nil
local function updateInput(input)
local delta = input.Position - dragStart
mainFrame.Position = UDim2.new(
startPos.X.Scale, startPos.X.Offset + delta.X,
startPos.Y.Scale, startPos.Y.Offset + delta.Y
)
end
mainFrame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = mainFrame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
UserInputService.InputChanged:Connect(function(input)
if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
updateInput(input)
end
end)No comments yet for this script.



