-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScript
More file actions
111 lines (92 loc) · 3.26 KB
/
Script
File metadata and controls
111 lines (92 loc) · 3.26 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
-- MM2 script for Mr.Gumball
-- By MegabyteGG (Be very cautious)
local neonColor = Color3.fromRGB(0, 255, 200) -- Main neon teal
local bgColor = Color3.fromRGB(10, 10, 20)
-- UI Setup
local ScreenGui = Instance.new("ScreenGui", game.CoreGui)
local Frame = Instance.new("Frame", ScreenGui)
Frame.Size = UDim2.new(0, 300, 0, 370)
Frame.Position = UDim2.new(0.7, 0, 0.2, 0)
Frame.BackgroundColor3 = bgColor
Frame.BorderColor3 = neonColor
Frame.BorderSizePixel = 2
local UICorner = Instance.new("UICorner", Frame)
UICorner.CornerRadius = UDim.new(0, 12)
local UIStroke = Instance.new("UIStroke", Frame)
UIStroke.Color = neonColor
UIStroke.Thickness = 2
local title = Instance.new("TextLabel", Frame)
title.Text = "⚡ MM2 Mod Menu ⚡"
title.Size = UDim2.new(1, 0, 0, 40)
title.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
title.TextColor3 = neonColor
title.Font = Enum.Font.FredokaOne
title.TextSize = 24
title.BorderSizePixel = 0
local corner = Instance.new("UICorner", title)
corner.CornerRadius = UDim.new(0, 8)
-- Button Creator
local function createButton(name, yOffset, callback)
local btn = Instance.new("TextButton", Frame)
btn.Text = name
btn.Position = UDim2.new(0.1, 0, 0, 50 + yOffset)
btn.Size = UDim2.new(0.8, 0, 0, 32)
btn.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
btn.TextColor3 = neonColor
btn.Font = Enum.Font.GothamBold
btn.TextSize = 18
local corner = Instance.new("UICorner", btn)
corner.CornerRadius = UDim.new(0, 8)
local stroke = Instance.new("UIStroke", btn)
stroke.Color = neonColor
stroke.Thickness = 1.2
btn.MouseButton1Click:Connect(callback)
end
-- Functional Buttons
createButton("🟢 Show Roles", 0, function()
for _, player in pairs(game.Players:GetPlayers()) do
if player.Character then
print(player.Name .. " - " .. (player.Backpack:FindFirstChild("Knife") and "Murderer" or player.Backpack:FindFirstChild("Gun") and "Sheriff" or "Innocent"))
end
end
end)
createButton("🔵 Grab Gun", 40, function()
local gunDrop = workspace:FindFirstChild("GunDrop")
if gunDrop then
game.Players.LocalPlayer.Character:MoveTo(gunDrop.Position)
end
end)
createButton("⚪ Teleport to Murderer", 80, function()
for _, plr in pairs(game.Players:GetPlayers()) do
if plr ~= game.Players.LocalPlayer and plr.Backpack:FindFirstChild("Knife") then
game.Players.LocalPlayer.Character:MoveTo(plr.Character.HumanoidRootPart.Position + Vector3.new(0, 5, 0))
end
end
end)
createButton("🟣 Kill All (Silent)", 120, function()
local event = game.ReplicatedStorage:FindFirstChild("KnifeHit")
for _, plr in pairs(game.Players:GetPlayers()) do
if plr ~= game.Players.LocalPlayer and plr.Character then
event:FireServer({plr.Character:FindFirstChild("Humanoid")})
end
end
end)
createButton("🟠 Speed Boost", 160, function()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
end)
createButton("🔴 Reset Speed", 200, function()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
end)
createButton("🟡 Invisible", 240, function()
for _, part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
if part:IsA("BasePart") then
part.Transparency = 1
end
end
end)
createButton("🔄 Reset", 280, function()
game.Players.LocalPlayer:LoadCharacter()
end)
createButton("❌ Close Menu", 320, function()
ScreenGui:Destroy()
end)