Repository navigation
Expand file tree
/
Copy pathscript.lua
More file actions
159 lines (130 loc) · 4.91 KB
/
Copy pathscript.lua
File metadata and controls
159 lines (130 loc) · 4.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
--[[
yo so remember that this code does nothing bad
all it is just a ui that does things
This is constantly updating and also kicks you if someone with verification badge or game creator
thanks
--]]
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local serverScriptService = game:GetService("ServerScriptService")
-- 1. Create the ScreenGui (Invisible container)
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "ModderMenu"
screenGui.Parent = playerGui
screenGui.ResetOnSpawn = false -- Keep UI after death
print("ModderScript V1 Loaded")
-- 2. Create the Main Frame (The "Window")
local frame = Instance.new("Frame")
frame.Name = "MainFrame"
frame.Size = UDim2.new(0, 500, 0, 300) -- Smaller than screen
frame.Position = UDim2.new(0.5, -150, 0.5, -75) -- Centered
frame.BackgroundColor3 = Color3.fromRGB(45, 45, 45) -- Dark grey background
frame.BorderSizePixel = 2
frame.Parent = screenGui
-- MAKE IT DRAGGABLE
frame.Active = true
frame.Draggable = true
local textLabel = Instance.new("TextLabel", screenGui)
-- Set the position and scaling
textLabel.TextColor3 = Color3.fromRGB(0, 125, 255)
textLabel.AnchorPoint = Vector2.new(0.5, 0)
textLabel.Position = UDim2.new(0.5, 0, 0, 0) -- Top Center
textLabel.Size = UDim2.new(1, 0, 0.1, 0) -- 100% width, 10% height
textLabel.Text = "ModderMenu V1 (by Thatonemodder)"
textLabel.TextScaled = true --
textLabel.BackgroundTransparency = 1 --
textLabel.Parent = frame
-- 3. Create the Button (Inside the Frame)
local button1 = Instance.new("TextButton")
button1.Name = "SpeedButton"
button1.Size = UDim2.new(0, 200, 0, 50)
button1.Position = UDim2.new(0.5, 40, 0.5, 80)
button1.Text = "WalkSpeed Cheat (100)"
button1.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
button1.TextColor3 = Color3.fromRGB(255, 255, 255)
button1.Parent = frame
-- Round the Main Frame corners
local frameCorner = Instance.new("UICorner")
frameCorner.CornerRadius = UDim.new(0, 12)
frameCorner.Parent = frame
-- Round the Button corners
local button1Corner = Instance.new("UICorner")
button1Corner.CornerRadius = UDim.new(0, 8)
button1Corner.Parent = button1
-- 4. The Logic
button1.MouseButton1Click:Connect(function()
local character = player.Character
if character and character:FindFirstChild("Humanoid") then
character.Humanoid.WalkSpeed = 100
print("WalkSpeed updated Successfully")
else
print("Character or Humanoid not found.")
end
end
local button2= Instance.new("TextButton")
button2.Name = "JumpButton"
button2.Size = UDim2.new(0, 200, 0, 50)
button2.Position = UDim2.new(0.5, 40, 0.5, 80-)
button2.Text = "JumpPower Cheat (100)"
button2.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
button2.TextColor3 = Color3.fromRGB(255, 255, 255)
button2.Parent = frame
local button2Corner = Instance.new("UICorner")
button2Corner.CornerRadius = UDim.new(0, 8)
button2Corner.Parent = button2
button2.MouseButton1Click:Connect(function()
local character = player.Character
if character and character:FindFirstChild("Humanoid") then
character.Humanoid.JumpPower = 100
print("JumpPower updated Successfully")
else
print("Character or Humanoid not found.")
end
end)
local anticel= Instance.new("TextButton")
anticel.Name = "anticel"
anticel.Size = UDim2.new("0, 200, 0, 50")
anticel.Position = UDim2.new("0.5, 40, 0.5, 120-")
anticel.Text = "Anti Verified/Creator (off)"
anticel.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
anticel.TextColor3 = = Color3.fromRGB(255, 255, 255)
anticel.Parent = frame
local anticelcorner = Instance.new("UICorner")
anticelcorner.CornerRadius = UDim.new(0, 8)
anticelcorner.Parent = anticel
local Players = game:GetService("Players")
local button = script.Parent
local creatorId = game.CreatorId
local Players = game:GetService("Players")
local button = script.Parent
local creatorId = game.CreatorId
-- Toggle variable to track the state
local isToggledOn = false
-- Function to scan the server
local function checkPlayers()
local specialPlayerFound = false
for _, player in ipairs(Players:GetPlayers()) do
if player.UserId == creatorId or player.IsVerified then
specialPlayerFound = true
print(player.Name .. " is a creator or verified player!")
end
end
if specialPlayerFound then
print("Kicking")
game.Players.LocalPLayer:kick("Creator/Verified was inside the server (Automatic kick)")
end
end
local function resetButtonState()
anticel.Text = "Anti Verified/Creator (off)"
anticel.BackgroundColor3 = Color3.fromRGB((0, 170, 255)
end
anticel.MouseButton1Click:Connect(function()
-- Flip the toggle state
isToggledOn = not isToggledOn
if isToggledOn then
anticel.Text = "Anti Verified/Creator (on)"
checkPlayers()
else
resetButtonState()
end
end)