Script Roblox V1

fauzielay12
34 x views • 11 months ago
-- Buat ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

-- Frame utama
local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 200, 0, 200)
Frame.Position = UDim2.new(0, 20, 1, -220) -- pojok kiri bawah
Frame.AnchorPoint = Vector2.new(0,1)
Frame.BackgroundColor3 = Color3.fromRGB(30,30,30)
Frame.BorderSizePixel = 0
Frame.Parent = ScreenGui

-- Judul + tombol minimize
local Title = Instance.new("TextButton")
Title.Size = UDim2.new(1, 0, 0, 30)
Title.Text = "⚡ Player Control"
Title.BackgroundColor3 = Color3.fromRGB(50,50,50)
Title.TextColor3 = Color3.fromRGB(255,255,255)
Title.Font = Enum.Font.SourceSansBold
Title.TextSize = 16
Title.Parent = Frame

-- Container isi (akan dihide saat minimize)
local Content = Instance.new("Frame")
Content.Size = UDim2.new(1, 0, 1, -30)
Content.Position = UDim2.new(0, 0, 0, 30)
Content.BackgroundTransparency = 1
Content.Parent = Frame

-- Variabel Player
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char:WaitForChild("Humanoid")
local hrp = char:WaitForChild("HumanoidRootPart")

-- Default Value
local speed = 16
local jump = 50
local godmode = false
humanoid.WalkSpeed = speed
humanoid.JumpPower = jump

-- Speed Label
local SpeedLabel = Instance.new("TextLabel")
SpeedLabel.Size = UDim2.new(1, -20, 0, 25)
SpeedLabel.Position = UDim2.new(0, 10, 0, 5)
SpeedLabel.Text = "Speed: 16"
SpeedLabel.TextColor3 = Color3.fromRGB(255,255,255)
SpeedLabel.BackgroundTransparency = 1
SpeedLabel.Font = Enum.Font.SourceSans
SpeedLabel.TextSize = 16
SpeedLabel.Parent = Content

-- Tombol Speed +
local SpeedPlus = Instance.new("TextButton")
SpeedPlus.Size = UDim2.new(0, 40, 0, 25)
SpeedPlus.Position = UDim2.new(1, -90, 0, 5)
SpeedPlus.Text = "+"
SpeedPlus.BackgroundColor3 = Color3.fromRGB(70,130,180)
SpeedPlus.TextColor3 = Color3.fromRGB(255,255,255)
SpeedPlus.Parent = Content

-- Tombol Speed -
local SpeedMinus = Instance.new("TextButton")
SpeedMinus.Size = UDim2.new(0, 40, 0, 25)
SpeedMinus.Position = UDim2.new(1, -45, 0, 5)
SpeedMinus.Text = "-"
SpeedMinus.BackgroundColor3 = Color3.fromRGB(178,34,34)
SpeedMinus.TextColor3 = Color3.fromRGB(255,255,255)
SpeedMinus.Parent = Content

-- Jump Label
local JumpLabel = Instance.new("TextLabel")
JumpLabel.Size = UDim2.new(1, -20, 0, 25)
JumpLabel.Position = UDim2.new(0, 10, 0, 40)
JumpLabel.Text = "Jump: 50"
JumpLabel.TextColor3 = Color3.fromRGB(255,255,255)
JumpLabel.BackgroundTransparency = 1
JumpLabel.Font = Enum.Font.SourceSans
JumpLabel.TextSize = 16
JumpLabel.Parent = Content

-- Tombol Jump +
local JumpPlus = Instance.new("TextButton")
JumpPlus.Size = UDim2.new(0, 40, 0, 25)
JumpPlus.Position = UDim2.new(1, -90, 0, 40)
JumpPlus.Text = "+"
JumpPlus.BackgroundColor3 = Color3.fromRGB(70,130,180)
JumpPlus.TextColor3 = Color3.fromRGB(255,255,255)
JumpPlus.Parent = Content

-- Tombol Jump -
local JumpMinus = Instance.new("TextButton")
JumpMinus.Size = UDim2.new(0, 40, 0, 25)
JumpMinus.Position = UDim2.new(1, -45, 0, 40)
JumpMinus.Text = "-"
JumpMinus.BackgroundColor3 = Color3.fromRGB(178,34,34)
JumpMinus.TextColor3 = Color3.fromRGB(255,255,255)
JumpMinus.Parent = Content

-- Tombol GodMode
local GodButton = Instance.new("TextButton")
GodButton.Size = UDim2.new(1, -20, 0, 30)
GodButton.Position = UDim2.new(0, 10, 0, 75)
GodButton.Text = "GodMode: OFF"
GodButton.BackgroundColor3 = Color3.fromRGB(128,0,128)
GodButton.TextColor3 = Color3.fromRGB(255,255,255)
GodButton.Parent = Content

-- Tombol Teleport Checkpoint
local TeleButton = Instance.new("TextButton")
TeleButton.Size = UDim2.new(1, -20, 0, 30)
TeleButton.Position = UDim2.new(0, 10, 0, 115)
TeleButton.Text = "Teleport Checkpoint"
TeleButton.BackgroundColor3 = Color3.fromRGB(0,128,0)
TeleButton.TextColor3 = Color3.fromRGB(255,255,255)
TeleButton.Parent = Content

-- Event Button
SpeedPlus.MouseButton1Click:Connect(function()
speed = speed + 5
humanoid.WalkSpeed = speed
SpeedLabel.Text = "Speed: "..speed
end)

SpeedMinus.MouseButton1Click:Connect(function()
speed = math.max(0, speed - 5)
humanoid.WalkSpeed = speed
SpeedLabel.Text = "Speed: "..speed
end)

JumpPlus.MouseButton1Click:Connect(function()
jump = jump + 10
humanoid.JumpPower = jump
JumpLabel.Text = "Jump: "..jump
end)

JumpMinus.MouseButton1Click:Connect(function()
jump = math.max(0, jump - 10)
humanoid.JumpPower = jump
JumpLabel.Text = "Jump: "..jump
end)

-- GodMode logic
GodButton.MouseButton1Click:Connect(function()
godmode = not godmode
GodButton.Text = "GodMode: "..(godmode and "ON" or "OFF")
if godmode then
-- Loop jaga nyawa
task.spawn(function()
while godmode do
humanoid.Health = humanoid.MaxHealth
task.wait(0.1)
end
end)
end
end)

-- Teleport ke checkpoint
TeleButton.MouseButton1Click:Connect(function()
local checkpoint = workspace:FindFirstChild("Checkpoint")
if checkpoint and checkpoint:IsA("Part") then
hrp.CFrame = checkpoint.CFrame + Vector3.new(0,5,0)
else
warn("Checkpoint tidak ditemukan di Workspace")
end
end)

-- Minimize/Maximize
local minimized = false
Title.MouseButton1Click:Connect(function()
minimized = not minimized
Content.Visible = not minimized
if minimized then
Title.Text = "⚡ Player Control (▼)"
Frame.Size = UDim2.new(0,200,0,30)
else
Title.Text = "⚡ Player Control"
Frame.Size = UDim2.new(0,200,0,200)
end
end)
Safefileku