Advertisement
KakarotWasTaken

Untitled

Mar 31st, 2021
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.60 KB | None | 0 0
  1. print("Loaded all settings [1/6]")
  2. if typeof(getgenv().mm2) == "Instance" then getgenv().mm2:Destroy() end
  3. local ss = getgenv().Settings
  4. local players = game:GetService("Players")
  5. local player = players.LocalPlayer
  6. local camera = workspace.CurrentCamera
  7. local mouse = player:GetMouse()
  8. local UIS = game:GetService("UserInputService")
  9. local TweenService = game:GetService("TweenService")
  10. local RunService = game:GetService("RunService")
  11. print("Loaded all variables [2/6]")
  12. local MM2 = Instance.new("ScreenGui")
  13. local Topbar = Instance.new("Frame")
  14. local Main = Instance.new("Frame")
  15. local UICorner = Instance.new("UICorner")
  16. local Murderer = Instance.new("TextButton")
  17. local UICorner_2 = Instance.new("UICorner")
  18. local Sheriff = Instance.new("TextButton")
  19. local UICorner_3 = Instance.new("UICorner")
  20. local MurdererText = Instance.new("TextLabel")
  21. local SheriffText = Instance.new("TextLabel")
  22. local GunDropText = Instance.new("TextLabel")
  23. local GunDrop = Instance.new("TextButton")
  24. local UICorner_4 = Instance.new("UICorner")
  25. local UICorner_5 = Instance.new("UICorner")
  26. local Title = Instance.new("TextLabel")
  27. local Credit = Instance.new("TextLabel")
  28. local Spectating = Instance.new("TextLabel")
  29. print("Loaded all instances [3/6]")
  30. if game.PlaceId ~= 142823291 then MM2:Destroy() end
  31.  
  32. MM2.Name = "MM2"
  33. MM2.Parent = game:GetService("CoreGui")
  34. getgenv().mm2 = MM2
  35.  
  36. Topbar.Name = "Topbar"
  37. Topbar.Parent = MM2
  38. Topbar.AnchorPoint = Vector2.new(0.5,0.5)
  39. Topbar.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  40. Topbar.Position = UDim2.new(0.5, 0, 0.375, 0)
  41. Topbar.Size = UDim2.new(0, 170, 0, 30)
  42. Topbar.ZIndex = 11
  43.  
  44. Main.Name = "Main"
  45. Main.Parent = Topbar
  46. Main.AnchorPoint = Vector2.new(0.5,0)
  47. Main.ClipsDescendants = true
  48. Main.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  49. Main.Position = UDim2.new(0.5, 0, 0, 0)
  50. Main.Size = UDim2.new(0, 170, 0, 209)
  51. Main.ZIndex = 10
  52.  
  53. UICorner.Name = "UICorner"
  54. UICorner.CornerRadius = UDim.new(0, 6)
  55. UICorner.Parent = Main
  56.  
  57. Murderer.Name = "Murderer"
  58. Murderer.Parent = Main
  59. Murderer.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  60. Murderer.Position = UDim2.new(0.0602940023, 0, 0.142000005, 25)
  61. Murderer.Size = UDim2.new(0, 150, 0, 30)
  62. Murderer.ZIndex = 11
  63. Murderer.Font = Enum.Font.GothamBold
  64. Murderer.Text = "None"
  65. Murderer.TextColor3 = Color3.fromRGB(255, 100, 100)
  66. Murderer.TextSize = 16.000
  67. Murderer.AutoButtonColor = false
  68.  
  69. UICorner_2.Name = "UICorner"
  70. UICorner_2.CornerRadius = UDim.new(0, 6)
  71. UICorner_2.Parent = Murderer
  72.  
  73. Sheriff.Name = "Sheriff"
  74. Sheriff.Parent = Main
  75. Sheriff.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  76. Sheriff.Position = UDim2.new(0.0602940321, 0, 0.400999993, 25)
  77. Sheriff.Size = UDim2.new(0, 150, 0, 30)
  78. Sheriff.ZIndex = 11
  79. Sheriff.Font = Enum.Font.GothamBold
  80. Sheriff.Text = "None"
  81. Sheriff.TextColor3 = Color3.fromRGB(100, 100, 255)
  82. Sheriff.TextSize = 16.000
  83. Sheriff.AutoButtonColor = false
  84.  
  85. UICorner_3.Name = "UICorner"
  86. UICorner_3.CornerRadius = UDim.new(0, 6)
  87. UICorner_3.Parent = Sheriff
  88.  
  89. MurdererText.Name = "MurdererText"
  90. MurdererText.Parent = Main
  91. MurdererText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  92. MurdererText.BackgroundTransparency = 1.000
  93. MurdererText.Position = UDim2.new(0.0544118881, 0, 0.144037277, 0)
  94. MurdererText.Size = UDim2.new(0, 150, 0, 24)
  95. MurdererText.ZIndex = 11
  96. MurdererText.Font = Enum.Font.GothamBold
  97. MurdererText.Text = "Murderer"
  98. MurdererText.TextColor3 = Color3.fromRGB(255, 0, 0)
  99. MurdererText.TextSize = 16.000
  100.  
  101. SheriffText.Name = "SheriffText"
  102. SheriffText.Parent = Main
  103. SheriffText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  104. SheriffText.BackgroundTransparency = 1.000
  105. SheriffText.Position = UDim2.new(0.0602941513, 0, 0.403182238, 0)
  106. SheriffText.Size = UDim2.new(0, 150, 0, 24)
  107. SheriffText.ZIndex = 11
  108. SheriffText.Font = Enum.Font.GothamBold
  109. SheriffText.Text = "Sheriff"
  110. SheriffText.TextColor3 = Color3.fromRGB(0, 0, 255)
  111. SheriffText.TextSize = 16.000
  112.  
  113. GunDropText.Name = "GunDropText"
  114. GunDropText.Parent = Main
  115. GunDropText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  116. GunDropText.BackgroundTransparency = 1.000
  117. GunDropText.Position = UDim2.new(0.0602941513, 0, 0.661555469, 0)
  118. GunDropText.Size = UDim2.new(0, 150, 0, 24)
  119. GunDropText.ZIndex = 11
  120. GunDropText.Font = Enum.Font.GothamBold
  121. GunDropText.Text = "Gun Dropped"
  122. GunDropText.TextColor3 = Color3.fromRGB(0, 255, 0)
  123. GunDropText.TextSize = 16.000
  124.  
  125. GunDrop.Name = "GunDrop"
  126. GunDrop.Parent = Main
  127. GunDrop.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  128. GunDrop.Position = UDim2.new(0.0602940321, 0, 0.660000026, 25)
  129. GunDrop.Size = UDim2.new(0, 150, 0, 30)
  130. GunDrop.ZIndex = 11
  131. GunDrop.Font = Enum.Font.GothamBold
  132. GunDrop.Text = "nil"
  133. GunDrop.TextColor3 = Color3.fromRGB(255, 255, 255)
  134. GunDrop.TextSize = 16.000
  135. GunDrop.AutoButtonColor = false
  136.  
  137. UICorner_4.Name = "UICorner"
  138. UICorner_4.CornerRadius = UDim.new(0, 6)
  139. UICorner_4.Parent = GunDrop
  140.  
  141. UICorner_5.Name = "UICorner"
  142. UICorner_5.CornerRadius = UDim.new(0, 6)
  143. UICorner_5.Parent = Topbar
  144.  
  145. Title.Name = "Title"
  146. Title.Parent = Topbar
  147. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  148. Title.BackgroundTransparency = 1.000
  149. Title.BorderSizePixel = 0
  150. Title.Position = UDim2.new(0.247058824, 0, 0, 0)
  151. Title.Size = UDim2.new(0, 85, 0, 30)
  152. Title.ZIndex = 12
  153. Title.Font = Enum.Font.GothamBold
  154. Title.Text = "Error Occurred" -- dont change
  155. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  156. Title.TextSize = 16.000
  157.  
  158. Credit.Name = "Credit"
  159. Credit.Parent = Main
  160. Credit.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  161. Credit.BackgroundTransparency = 1.000
  162. Credit.Position = UDim2.new(0.06, 0, 0.923, 0)
  163. Credit.Size = UDim2.new(0, 150, 0, 15)
  164. Credit.ZIndex = 11
  165. Credit.Font = Enum.Font.GothamBold
  166. Credit.Text = "Made by zzerexx#3970"
  167. Credit.TextColor3 = Color3.fromRGB(255, 255, 255)
  168. Credit.TextSize = 12.000
  169.  
  170. Spectating.Name = "Spectating"
  171. Spectating.Parent = MM2
  172. Spectating.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  173. Spectating.BackgroundTransparency = 1.000
  174. Spectating.Position = UDim2.new(0.5, 0, 0.8, 0)
  175. Spectating.Size = UDim2.new(0, 150, 0, 15)
  176. Spectating.ZIndex = 15
  177. Spectating.Font = Enum.Font.GothamBold
  178. Spectating.Text = "Spectating: None"
  179. Spectating.TextColor3 = Color3.fromRGB(255, 255, 255)
  180. Spectating.TextSize = 32.000
  181. Spectating.AnchorPoint = Vector2.new(0.5,0.5)
  182. Spectating.Visible = false
  183. print("Loaded all properties [4/6]")
  184. local folder = Instance.new("Folder")
  185. folder.Parent = MM2
  186. folder.Name = "Folder"
  187. function notif(text)
  188. if typeof(text) == "string" and ss.Notifications then
  189. game.StarterGui:SetCore("SendNotification", {
  190. Title = "MM2 Utilities",
  191. Text = text,
  192. Duration = 1.5,
  193. })
  194. end
  195. end
  196. local aimbottoggled = false
  197. UIS.InputBegan:Connect(function(input, gameProcessed)
  198. if input.KeyCode == Enum.KeyCode.Y then
  199. aimbottoggled = not aimbottoggled
  200. notif("Aimbot toggled: "..tostring(aimbottoggled))
  201. end
  202. end)
  203. function sup()
  204. for i,v in pairs(folder:GetChildren()) do
  205. v:Destroy()
  206. end
  207. for i,v in pairs(workspace:GetDescendants()) do
  208. if v.Name == "Raggy" and ss.RemoveRagdolls then
  209. v:Destroy()
  210. elseif v.Name == "GlitchProof" and v.ClassName == "Model" and ss.RemoveBarriers then
  211. v:Destroy()
  212. end
  213. end
  214. for i,v in pairs(players:GetChildren()) do
  215. if v.Name ~= player.Name and not folder:FindFirstChild(v.Name) then
  216. if ss.NameEsp then
  217. local Billboard = Instance.new("BillboardGui", folder)
  218. local Name = Instance.new("TextLabel", Billboard)
  219. Billboard.Name = v.Name
  220. Billboard.Adornee = v.Character.Head
  221. Billboard.Size = UDim2.new(10, 0, 4, 0)
  222. Billboard.ExtentsOffset = Vector3.new(0, 3, 0)
  223. Billboard.AlwaysOnTop = true
  224. Billboard.MaxDistance = math.huge
  225. Name.Name = "Name"
  226. Name.BackgroundTransparency = 1
  227. Name.TextTransparency = ss.NameTextTransparency
  228. Name.BorderSizePixel = 0
  229. Name.Font = ss.NameFont
  230. Name.Size = UDim2.new(1, 0, 1, 0)
  231. Name.Text = v.Name
  232. Name.TextColor3 = ss.InnocentColor
  233. Name.TextScaled = false
  234. Name.TextSize = 18
  235. if v.Backpack:FindFirstChild("Knife") or v.Character:FindFirstChild("Knife") then
  236. Murderer.Text = v.Name
  237. Name.TextColor3 = ss.MurdererColor
  238. if not Murderer.TextFits then
  239. Murderer.TextScaled = true
  240. else
  241. Murderer.TextScaled = false
  242. end
  243. elseif v.Backpack:FindFirstChild("Gun") or v.Character:FindFirstChild("Gun") then
  244. Sheriff.Text = v.Name
  245. Name.TextColor3 = ss.SheriffColor
  246. if not Sheriff.TextFits then
  247. Sheriff.TextScaled = true
  248. else
  249. Sheriff.TextScaled = false
  250. end
  251. elseif ss.AvoidInnocents and not v.Backpack:FindFirstChild("Knife") or v.Character:FindFirstChild("Knife") or v.Backpack:FindFirstChild("Gun") or v.Character:FindFirstChild("Gun") then
  252. Billboard:Destroy()
  253. end
  254. end -- ss.NameEsp
  255. end -- Name Check
  256. end -- for i,v
  257. if workspace:FindFirstChild("GunDrop",true) then
  258. if ss.GunEsp then
  259. local GunEsp = Instance.new("BoxHandleAdornment", folder)
  260. GunEsp.Name = "Gun"
  261. GunEsp.Adornee = game.Workspace.GunDrop
  262. GunEsp.AlwaysOnTop = true
  263. GunEsp.Color3 = ss.GunEspColor
  264. GunEsp.Size = game.Workspace.GunDrop.Size
  265. GunEsp.Transparency = 0.6
  266. GunEsp.ZIndex = 0
  267. if ss.GunNameEsp then
  268. local Billboard = Instance.new("BillboardGui", folder)
  269. local Name = Instance.new("TextLabel", Billboard)
  270. Billboard.Name = "Gun"
  271. Billboard.Adornee = game.Workspace.GunDrop
  272. Billboard.Size = UDim2.new(10, 0, 4, 0)
  273. Billboard.ExtentsOffset = Vector3.new(0, 3, 0)
  274. Billboard.AlwaysOnTop = true
  275. Billboard.MaxDistance = math.huge
  276. Name.Name = "Name"
  277. Name.BackgroundTransparency = 1
  278. Name.TextTransparency = ss.GunNameTransparency
  279. Name.BorderSizePixel = 0
  280. Name.Font = ss.NameFont
  281. Name.Size = UDim2.new(1, 0, 1, 0)
  282. Name.Text = "Gun"
  283. Name.TextColor3 = ss.GunNameColor
  284. Name.TextScaled = false
  285. Name.TextSize = 18
  286. end
  287. end
  288. if ss.AutoPickupGun then
  289. local hrp = player.Character.HumanoidRootPart
  290. local OldCF = hrp.CFrame
  291. hrp.CFrame = game.Workspace.GunDrop.CFrame
  292. wait(0.2)
  293. hrp.CFrame = OldCF
  294. end
  295. GunDrop.Text = "True"
  296. GunDrop.TextColor3 = ss.GColorT
  297. else
  298. GunDrop.Text = "False"
  299. GunDrop.TextColor3 = ss.GColorF
  300. end
  301. if ss.Aimbot then
  302. local keypressed = false
  303. local team
  304. local target
  305. mouse.Button2Down:Connect(function()
  306. keypressed = true
  307. end)
  308. mouse.Button2Up:Connect(function()
  309. keypressed = false
  310. end)
  311. if player.Backpack:FindFirstChild("Knife") or player.Character:FindFirstChild("Knife") then
  312. team = "Murderer"
  313. target = players[Sheriff.Text].Character.HumanoidRootPart
  314. if ss.AimbotAsMurderer then
  315. aimbottoggled = true
  316. notif("Aimbot toggled: true (Murderer)")
  317. repeat
  318. if keypressed and aimbottoggled then
  319. camera.CFrame = CFrame.new(camera.CFrame.Position, target.Position)
  320. end
  321. RunService.RenderStepped:Wait()
  322. until players[Sheriff.Text].Character.Humanoid.Health < 1 or team == nil or ss.Aimbot == false or ss.AimbotAsMurderer == false
  323. end
  324. elseif player.Backpack:FindFirstChild("Gun") or player.Character:FindFirstChild("Gun") then
  325. team = "Sheriff"
  326. target = players[Murderer.Text].Character.HumanoidRootPart
  327. if ss.AimbotAsSheriff then
  328. aimbottoggled = true
  329. notif("Aimbot toggled: true (Sheriff)")
  330. repeat
  331. if keypressed and aimbottoggled then
  332. camera.CFrame = CFrame.new(camera.CFrame.Position, target.Position)
  333. end
  334. RunService.RenderStepped:Wait()
  335. until players[Murderer.Text].Character.Humanoid.Health < 1 or team == nil or ss.Aimbot == false or ss.AimbotAsSheriff == false
  336. end
  337. else
  338. team = nil
  339. target = nil
  340. aimbottoggled = false
  341. end
  342. end
  343. end
  344. local object = workspace
  345. function XrayOn(object)
  346. for i,v in pairs(object:GetChildren()) do
  347. if v:IsA("BasePart") and not v.Parent:FindFirstChild("Humanoid") then
  348. if typeof(ss.XrayTransparency) == "number" then
  349. v.LocalTransparencyModifier = ss.XrayTransparency
  350. end
  351. end
  352. XrayOn(v)
  353. end
  354. end
  355. function XrayOff(object)
  356. for i,v in pairs(object:GetChildren()) do
  357. if v:IsA("BasePart") and not v.Parent:FindFirstChild("Humanoid") then
  358. v.LocalTransparencyModifier = 0
  359. end
  360. XrayOff(v)
  361. end
  362. end
  363. local noclip = false
  364. local xray = false
  365. local toggle1 = false
  366. local emotes = false
  367. UIS.InputBegan:Connect(function(input, gameProcessed)
  368. if not gameProcessed then
  369. if input.KeyCode == Enum.KeyCode.R and ss.Noclip then
  370. noclip = not noclip
  371. notif("Noclip toggled: "..tostring(noclip))
  372. player.Character.Humanoid:ChangeState(11)
  373. repeat
  374. player.Character.Humanoid:ChangeState(11)
  375. RunService.Stepped:Wait()
  376. until noclip == false
  377. end
  378. if input.KeyCode == Enum.KeyCode.T and ss.Xray then
  379. xray = not xray
  380. notif("Xray toggled: "..tostring(xray))
  381. if xray then
  382. XrayOn(object)
  383. else
  384. XrayOff(object)
  385. end
  386. end
  387. if input.KeyCode == Enum.KeyCode.RightControl then
  388. toggle1 = not toggle1
  389. if toggle1 then
  390. Topbar.Visible = false
  391. notif("Gui is now invisible")
  392. else
  393. Topbar.Visible = true
  394. notif("Gui is now visible")
  395. end
  396. end
  397. end
  398. end)
  399. local ctrlpressed = false
  400. mouse.Button1Down:Connect(function()
  401. if ctrlpressed and ss.CtrlClickTP then
  402. player.Character:MoveTo(mouse.Hit.p)
  403. end
  404. end)
  405. UIS.InputBegan:Connect(function(input, gameProcessed)
  406. if input.KeyCode == Enum.KeyCode.LeftControl and not gameProcessed then
  407. ctrlpressed = true
  408. end
  409. end)
  410. UIS.InputEnded:Connect(function(input, gameProcessed)
  411. if input.KeyCode == Enum.KeyCode.LeftControl and not gameProcessed then
  412. ctrlpressed = false
  413. end
  414. end)
  415. local mbtn = false -- murderer button
  416. local sbtn = false -- sheriff button
  417. Murderer.MouseButton1Click:Connect(function()
  418. if Murderer.Text ~= "None" then
  419. if mbtn == false then
  420. camera.CameraSubject = players[Murderer.Text].Character.Humanoid
  421. Spectating.Visible = true
  422. Spectating.Text = "Spectating: "..Murderer.Text
  423. Spectating.TextColor3 = Color3.fromRGB(255, 0, 0)
  424. mbtn = true
  425. sbtn = false
  426. elseif mbtn == true then
  427. camera.CameraSubject = player.Character.Humanoid
  428. Spectating.Visible = false
  429. Spectating.Text = "Spectating: None"
  430. Spectating.TextColor3 = Color3.fromRGB(255, 255, 255)
  431. mbtn = false
  432. end
  433. end
  434. end)
  435. Sheriff.MouseButton1Click:Connect(function()
  436. if Sheriff.Text ~= "None" then
  437. if sbtn == false then
  438. camera.CameraSubject = players[Sheriff.Text].Character.Humanoid
  439. Spectating.Visible = true
  440. Spectating.Text = "Spectating: "..Sheriff.Text
  441. Spectating.TextColor3 = Color3.fromRGB(0, 0, 255)
  442. sbtn = true
  443. mbtn = false
  444. elseif sbtn == true then
  445. camera.CameraSubject = player.Character.Humanoid
  446. Spectating.Visible = false
  447. Spectating.Text = "Spectating: None"
  448. Spectating.TextColor3 = Color3.fromRGB(255, 255, 255)
  449. sbtn = false
  450. end
  451. end
  452. end)
  453. GunDrop.MouseButton1Click:Connect(function()
  454. pcall(function()
  455. if workspace:FindFirstChild("GunDrop",true) and GunDrop.Text == "True" then
  456. local hrp = player.Character.HumanoidRootPart
  457. local OldCF = hrp.CFrame
  458. hrp.CFrame = workspace.GunDrop.CFrame
  459. wait(0.2)
  460. hrp.CFrame = OldCF
  461. end
  462. end)
  463. end)
  464. if ss.UnlockEmotes and player.PlayerGui.MainGUI then -- did not make this btw
  465. for i,v in pairs(player.PlayerGui.MainGUI.Game.Emotes.EmotePages:GetChildren()) do
  466. if v.Name == "MM2 Utilities" then v:Destroy() end
  467. end
  468. local emote = require(game:GetService("ReplicatedStorage").Modules.EmoteModule).GeneratePage
  469. local target = player.PlayerGui.MainGUI.Game.Emotes
  470. local emotelist = { "headless","zombie","zen","ninja","floss","dab" }
  471. emote(emotelist,target,"MM2 Utilities")
  472. end
  473. function dragify(Frame)
  474. dragToggle = nil
  475. local dragSpeed = 0.5
  476. dragInput = nil
  477. dragStart = nil
  478. local dragPos = nil
  479. function updateInput(input)
  480. local Delta = input.Position - dragStart
  481. local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  482. TweenService:Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play()
  483. end
  484. Frame.InputBegan:Connect(function(input)
  485. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  486. dragToggle = true
  487. dragStart = input.Position
  488. startPos = Frame.Position
  489. input.Changed:Connect(function()
  490. if input.UserInputState == Enum.UserInputState.End then
  491. dragToggle = false
  492. end
  493. end)
  494. end
  495. end)
  496. Frame.InputChanged:Connect(function(input)
  497. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  498. dragInput = input
  499. end
  500. end)
  501. game:GetService("UserInputService").InputChanged:Connect(function(input)
  502. if input == dragInput and dragToggle then
  503. updateInput(input)
  504. end
  505. end)
  506. end
  507. dragify(Topbar) -- credit to this guy: https://www.roblox.com/library/5021849770/Smooth-Drag
  508. function round(num, numDecimalPlaces)
  509. return tonumber(string.format("%." .. (numDecimalPlaces or 0) .. "f", num))
  510. end
  511.  
  512. print("Loaded all scripts [5/6]")
  513. function ApplyTheme(Color1, Color2, Color3, MColor1, MColor2, SColor1, SColor2, GColor1, TextFont, TextColor)
  514. Topbar.BackgroundColor3 = Color1
  515. Murderer.BackgroundColor3 = Color2
  516. Sheriff.BackgroundColor3 = Color2
  517. GunDrop.BackgroundColor3 = Color2
  518. Main.BackgroundColor3 = Color3
  519. MurdererText.TextColor3 = MColor1
  520. Murderer.TextColor3 = MColor2
  521. SheriffText.TextColor3 = SColor1
  522. Sheriff.TextColor3 = SColor2
  523. GunDropText.TextColor3 = GColor1
  524. Title.Font = TextFont
  525. Murderer.Font = TextFont
  526. MurdererText.Font = TextFont
  527. Sheriff.Font = TextFont
  528. SheriffText.Font = TextFont
  529. GunDrop.Font = TextFont
  530. GunDropText.Font = TextFont
  531. Credit.Font = TextFont
  532. Title.TextColor3 = TextColor
  533. Credit.TextColor3 = TextColor
  534. end
  535. ApplyTheme(ss.Color1, ss.Color2, ss.Color3, ss.MColor1, ss.MColor2, ss.SColor1, ss.SColor2, ss.GColor1, ss.TextFont, ss.MainTextColor)
  536. function PresetTheme(Theme)
  537. local theme
  538. if Theme == "Carbon" then
  539. theme = {
  540. Color1 = Color3.fromRGB(19,19,19),
  541. Color2 = Color3.fromRGB(19,19,19),
  542. Color3 = Color3.fromRGB(24,24,24),
  543. MColor1 = Color3.fromRGB(255,0,0),
  544. MColor2 = Color3.fromRGB(255,255,255),
  545. SColor1 = Color3.fromRGB(0,0,255),
  546. SColor2 = Color3.fromRGB(255,255,255),
  547. GColor1 = Color3.fromRGB(0,255,0),
  548. GColorT = Color3.fromRGB(100,255,100),
  549. GColorF = Color3.fromRGB(255,100,100),
  550. TextFont = ss.TextFont,
  551. MainTextColor = Color3.fromRGB(255,255,255)
  552. }
  553. ApplyTheme(theme.Color1, theme.Color2, theme.Color3, theme.MColor1, theme.MColor2, theme.SColor1, theme.SColor2, theme.GColor1, theme.TextFont, theme.MainTextColor)
  554. elseif Theme == "Strawberry" then
  555. theme = {
  556. Color1 = Color3.fromRGB(244,143,177),
  557. Color2 = Color3.fromRGB(244,143,177),
  558. Color3 = Color3.fromRGB(248,187,208),
  559. MColor1 = Color3.fromRGB(255,0,170),
  560. MColor2 = Color3.fromRGB(255,255,255),
  561. SColor1 = Color3.fromRGB(255,0,170),
  562. SColor2 = Color3.fromRGB(255,255,255),
  563. GColor1 = Color3.fromRGB(255,0,170),
  564. GColorT = Color3.fromRGB(255,255,255),
  565. GColorF = Color3.fromRGB(255,255,255),
  566. TextFont = ss.TextFont,
  567. MainTextColor = Color3.fromRGB(255,255,255)
  568. }
  569. ss.GColorT = theme.GColorT
  570. ss.GColorF = theme.GColorF
  571. ApplyTheme(theme.Color1, theme.Color2, theme.Color3, theme.MColor1, theme.MColor2, theme.SColor1, theme.SColor2, theme.GColor1, theme.TextFont, theme.MainTextColor)
  572. elseif Theme == "SkyBlue" then
  573. theme = {
  574. Color1 = Color3.fromRGB(59,132,235),
  575. Color2 = Color3.fromRGB(59,132,235),
  576. Color3 = Color3.fromRGB(120,172,245),
  577. MColor1 = Color3.fromRGB(0,0,255),
  578. MColor2 = Color3.fromRGB(255,255,255),
  579. SColor1 = Color3.fromRGB(0,0,255),
  580. SColor2 = Color3.fromRGB(255,255,255),
  581. GColor1 = Color3.fromRGB(0,0,255),
  582. GColorT = Color3.fromRGB(255,255,255),
  583. GColorF = Color3.fromRGB(255,255,255),
  584. TextFont = ss.TextFont,
  585. MainTextColor = Color3.fromRGB(255,255,255)
  586. }
  587. ss.GColorT = theme.GColorT
  588. ss.GColorF = theme.GColorF
  589. ApplyTheme(theme.Color1, theme.Color2, theme.Color3, theme.MColor1, theme.MColor2, theme.SColor1, theme.SColor2, theme.GColor1, theme.TextFont, theme.MainTextColor)
  590. elseif Theme == "Emerald" then
  591. theme = {
  592. Color1 = Color3.fromRGB(29,185,84),
  593. Color2 = Color3.fromRGB(29,185,84),
  594. Color3 = Color3.fromRGB(92,255,105),
  595. MColor1 = Color3.fromRGB(0,225,0),
  596. MColor2 = Color3.fromRGB(255,255,255),
  597. SColor1 = Color3.fromRGB(0,225,0),
  598. SColor2 = Color3.fromRGB(255,255,255),
  599. GColor1 = Color3.fromRGB(0,225,0),
  600. GColorT = Color3.fromRGB(255,255,255),
  601. GColorF = Color3.fromRGB(255,255,255),
  602. TextFont = ss.TextFont,
  603. MainTextColor = Color3.fromRGB(255,255,255)
  604. }
  605. ss.GColorT = theme.GColorT
  606. ss.GColorF = theme.GColorF
  607. ApplyTheme(theme.Color1, theme.Color2, theme.Color3, theme.MColor1, theme.MColor2, theme.SColor1, theme.SColor2, theme.GColor1, theme.TextFont, theme.MainTextColor)
  608. end
  609. end
  610. PresetTheme(ss.PresetTheme)
  611. print("Applied custom theme [6/6]")
  612. Title.Text = "MM2 Utilities"
  613. local goal1 = {} goal1.TextTransparency = 0
  614. function fadetext(obj, delay) TweenService:Create(obj, TweenInfo.new(delay,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),goal1):Play() end
  615. function LoadAnimation()
  616. local loadtime = tick()
  617. Topbar.Size = UDim2.new(0,0,0,0)
  618. Topbar.Visible = false
  619. Title.TextTransparency = 1
  620. Main.Size = UDim2.new(0,0,0,0)
  621. Main.Visible = false
  622. MurdererText.TextTransparency = 1
  623. Murderer.TextTransparency = 1
  624. SheriffText.TextTransparency = 1
  625. Sheriff.TextTransparency = 1
  626. GunDropText.TextTransparency = 1
  627. GunDrop.TextTransparency = 1
  628. Credit.TextTransparency = 1
  629. Topbar.Visible = true
  630. Topbar:TweenSize(UDim2.new(0,30,0,30),"Out","Sine","0.3")
  631. wait(0.3)
  632. Topbar:TweenSize(UDim2.new(0,170,0,30),"Out","Sine","0.5")
  633. wait(0.5)
  634. fadetext(Title, 0.5)
  635. Main.Visible = true
  636. Main.Size = UDim2.new(0,170,0,30)
  637. Main:TweenSize(UDim2.new(0,170,0,209),"Out","Sine","0.7")
  638. wait(0.2)
  639. fadetext(MurdererText, 0.2)
  640. wait(0.07)
  641. fadetext(Murderer, 0.2)
  642. wait(0.07)
  643. fadetext(SheriffText, 0.2)
  644. wait(0.06)
  645. fadetext(Sheriff, 0.2)
  646. wait(0.06)
  647. fadetext(GunDropText, 0.2)
  648. wait(0.05)
  649. fadetext(GunDrop, 0.2)
  650. wait(0.05)
  651. fadetext(Credit, 0.2)
  652. print("Loaded animation, took "..round(tick()-loadtime,2).." seconds")
  653. end
  654. LoadAnimation()
  655. local l = game:GetService("Lighting")
  656. getgenv().oldl = { Ambient = l.Ambient, Brightness = l.Brightness, GlobalShadows = l.GlobalShadows }
  657. function StartMM2()
  658. if ss.Enabled then
  659. pcall(sup)
  660. ApplyTheme(ss.Color1, ss.Color2, ss.Color3, ss.MColor1, ss.MColor2, ss.SColor1, ss.SColor2, ss.GColor1, ss.TextFont, ss.MainTextColor)
  661. PresetTheme(ss.PresetTheme)
  662. player.Character.Humanoid.WalkSpeed = ss.WalkSpeed
  663. player.Character.Humanoid.JumpPower = ss.JumpPower
  664. camera.FieldOfView = ss.FieldOfView
  665. player.DevCameraOcclusionMode = ss.CameraMode
  666. player.CameraMaxZoomDistance = ss.MaxZoom
  667. if ss.RemoveBlackScreen then
  668. player.PlayerGui.SpawnFade.Fade.Visible = false
  669. player.PlayerGui.CameraFade.Fade.Visible = false
  670. end
  671. if ss.Fullbright then
  672. l.Ambient = Color3.fromRGB(255,255,255)
  673. l.Brightness = 50
  674. l.GlobalShadows = false
  675. else
  676. l.Ambient = getgenv().oldl.Ambient
  677. l.Brightness = getgenv().oldl.Brightness
  678. l.GlobalShadows = getgenv().oldl.GlobalShadows
  679. end
  680. if ss.UnlockEmotes and player.PlayerGui.MainGUI then -- did not make this btw
  681. local emote = require(game:GetService("ReplicatedStorage").Modules.EmoteModule).GeneratePage
  682. local target = player.PlayerGui.MainGUI.Game.Emotes
  683. local emotelist = { "headless","zombie","zen","ninja","floss","dab" }
  684. if not player.PlayerGui.MainGUI.Game.Emotes.EmotePages:FindFirstChild("MM2 Utilities") then
  685. emote(emotelist,target,"MM2 Utilities")
  686. notif("Unlocked emotes")
  687. end
  688. end
  689. end
  690. end
  691. pcall(StartMM2)
  692. if not getgenv().MM2_UTILITIES_LOADED then
  693. print("\n███╗░░░███╗███╗░░░███╗██████╗░  ██╗░░░██╗████████╗██╗██╗░░░░░██╗████████╗██╗███████╗░██████╗\n████╗░████║████╗░████║╚════██╗  ██║░░░██║╚══██╔══╝██║██║░░░░░██║╚══██╔══╝██║██╔════╝██╔════╝\n██╔████╔██║██╔████╔██║░░███╔═╝  ██║░░░██║░░░██║░░░██║██║░░░░░██║░░░██║░░░██║█████╗░░╚█████╗░\n██║╚██╔╝██║██║╚██╔╝██║██╔══╝░░  ██║░░░██║░░░██║░░░██║██║░░░░░██║░░░██║░░░██║██╔══╝░░░╚═══██╗\n██║░╚═╝░██║██║░╚═╝░██║███████╗  ╚██████╔╝░░░██║░░░██║███████╗██║░░░██║░░░██║███████╗██████╔╝\n╚═╝░░░░░╚═╝╚═╝░░░░░╚═╝╚══════╝  ░╚═════╝░░░░╚═╝░░░╚═╝╚══════╝╚═╝░░░╚═╝░░░╚═╝╚══════╝╚═════╝░")
  694. print('Press "Left Ctrl" to toggle gui visibility')
  695. print('Executing multiple times will cause notification spam, disable "Notifications" to prevent this')
  696. print("Made By zzerexx#3970")
  697. end
  698. getgenv().MM2_UTILITIES_LOADED = true
  699. while wait(2) do
  700. pcall(StartMM2)
  701. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement