KEMBAR78
Speed 100 and Max Zoom Script | PDF
0% found this document useful (0 votes)
33 views2 pages

Speed 100 and Max Zoom Script

Uploaded by

junior111kucing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

Speed 100 and Max Zoom Script

Uploaded by

junior111kucing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

-- LocalScript (StarterGui)

local Players = game:GetService("Players")


local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char:WaitForChild("Humanoid")

-- Create ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomGUI"
screenGui.Parent = player:WaitForChild("PlayerGui")

-- Main Frame
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 250, 0, 150)
frame.Position = UDim2.new(0.4, 0, 0.4, 0)
frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
frame.Active = true
frame.Draggable = true -- allows dragging
frame.Parent = screenGui

-- Title Bar
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, -30, 0, 30)
title.Position = UDim2.new(0, 5, 0, 0)
title.BackgroundTransparency = 1
title.Text = "Utility Menu"
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.Font = Enum.Font.SourceSansBold
title.TextScaled = true
title.Parent = frame

-- X Button (close)
local closeBtn = Instance.new("TextButton")
closeBtn.Size = UDim2.new(0, 30, 0, 30)
closeBtn.Position = UDim2.new(1, -30, 0, 0)
closeBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
closeBtn.Text = "X"
closeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
closeBtn.Font = Enum.Font.SourceSansBold
closeBtn.TextScaled = true
closeBtn.Parent = frame

closeBtn.MouseButton1Click:Connect(function()
screenGui:Destroy()
end)

-- Speed 100 Button


local speedBtn = Instance.new("TextButton")
speedBtn.Size = UDim2.new(1, -20, 0, 40)
speedBtn.Position = UDim2.new(0, 10, 0, 40)
speedBtn.BackgroundColor3 = Color3.fromRGB(50, 150, 250)
speedBtn.Text = "Speed 100"
speedBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
speedBtn.Font = Enum.Font.SourceSansBold
speedBtn.TextScaled = true
speedBtn.Parent = frame

speedBtn.MouseButton1Click:Connect(function()
if humanoid then
humanoid.WalkSpeed = 100
end
end)

-- Max Zoom Button


local zoomBtn = Instance.new("TextButton")
zoomBtn.Size = UDim2.new(1, -20, 0, 40)
zoomBtn.Position = UDim2.new(0, 10, 0, 90)
zoomBtn.BackgroundColor3 = Color3.fromRGB(50, 200, 100)
zoomBtn.Text = "Max Zoom"
zoomBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
zoomBtn.Font = Enum.Font.SourceSansBold
zoomBtn.TextScaled = true
zoomBtn.Parent = frame

zoomBtn.MouseButton1Click:Connect(function()
player.CameraMaxZoomDistance = 1000 -- or higher if you want
end)

You might also like