Advertisement
2021_pogg

yk the rest

Apr 1st, 2021
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.45 KB | None | 0 0
  1. local HatHaxMoonHub = Instance.new("ScreenGui")
  2. local Main = Instance.new("ImageLabel")
  3. local DevelopedBy = Instance.new("TextLabel")
  4. local HatHax = Instance.new("Frame")
  5. local ID = Instance.new("TextBox")
  6. local Victim = Instance.new("TextBox")
  7. local Top = Instance.new("TextLabel")
  8. local Top_Roundify_12px = Instance.new("ImageLabel")
  9. local Left = Instance.new("TextLabel")
  10. local Right = Instance.new("TextLabel")
  11. local Title = Instance.new("TextLabel")
  12. local Exit = Instance.new("TextButton")
  13. local Exit_Roundify_12px = Instance.new("ImageLabel")
  14. local Send = Instance.new("TextButton")
  15.  
  16. --Properties:
  17.  
  18. HatHaxMoonHub.Name = "HatGiver"
  19. HatHaxMoonHub.Parent = game.CoreGui
  20.  
  21. Main.Name = "Main"
  22. Main.Parent = HatHaxMoonHub
  23. Main.Active = true
  24. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  25. Main.BackgroundTransparency = 1.000
  26. Main.Position = UDim2.new(0.382807672, 0, 0.351351351, 0)
  27. Main.Selectable = true
  28. Main.Size = UDim2.new(0, 378, 0, 242)
  29. Main.Image = "rbxassetid://3570695787"
  30. Main.ScaleType = Enum.ScaleType.Slice
  31. Main.SliceCenter = Rect.new(100, 100, 100, 100)
  32. Main.SliceScale = 0.120
  33. Main.Draggable = true
  34.  
  35. DevelopedBy.Name = "DevelopedBy"
  36. DevelopedBy.Parent = Main
  37. DevelopedBy.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  38. DevelopedBy.BackgroundTransparency = 1.000
  39. DevelopedBy.Position = UDim2.new(0, 0, 0.929751992, 0)
  40. DevelopedBy.Size = UDim2.new(0, 123, 0, 17)
  41. DevelopedBy.Font = Enum.Font.SourceSansLight
  42. DevelopedBy.Text = "RH7 GUI"
  43. DevelopedBy.TextColor3 = Color3.fromRGB(0, 0, 0)
  44. DevelopedBy.TextScaled = true
  45. DevelopedBy.TextSize = 14.000
  46. DevelopedBy.TextWrapped = true
  47.  
  48. HatHax.Name = "HatHax"
  49. HatHax.Parent = Main
  50. HatHax.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51. HatHax.BackgroundTransparency = 1.000
  52. HatHax.Position = UDim2.new(0, 0, 0.223140493, 0)
  53. HatHax.Size = UDim2.new(0, 378, 0, 188)
  54.  
  55. ID.Name = "ID"
  56. ID.Parent = HatHax
  57. ID.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  58. ID.BorderColor3 = Color3.fromRGB(0, 0, 0)
  59. ID.Position = UDim2.new(0.0185185187, 0, 0.0372340418, 0)
  60. ID.Size = UDim2.new(0, 365, 0, 46)
  61. ID.Font = Enum.Font.SourceSansLight
  62. ID.Text = "ID"
  63. ID.TextColor3 = Color3.fromRGB(0, 0, 0)
  64. ID.TextScaled = true
  65. ID.TextSize = 14.000
  66. ID.TextWrapped = true
  67.  
  68. Victim.Name = "Victim"
  69. Victim.Parent = HatHax
  70. Victim.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  71. Victim.BorderColor3 = Color3.fromRGB(0, 0, 0)
  72. Victim.Position = UDim2.new(0.0185185187, 0, 0.340425521, 0)
  73. Victim.Size = UDim2.new(0, 365, 0, 46)
  74. Victim.Font = Enum.Font.SourceSansLight
  75. Victim.Text = "Victim"
  76. Victim.TextColor3 = Color3.fromRGB(0, 0, 0)
  77. Victim.TextScaled = true
  78. Victim.TextSize = 14.000
  79. Victim.TextWrapped = true
  80.  
  81. Top.Name = "Top"
  82. Top.Parent = Main
  83. Top.BackgroundColor3 = Color3.fromRGB(239, 239, 239)
  84. Top.BackgroundTransparency = 1.000
  85. Top.BorderSizePixel = 0
  86. Top.Size = UDim2.new(0, 378, 0, 54)
  87. Top.Font = Enum.Font.SourceSans
  88. Top.Text = " "
  89. Top.TextColor3 = Color3.fromRGB(0, 0, 0)
  90. Top.TextSize = 14.000
  91.  
  92. Top_Roundify_12px.Name = "Top_Roundify_12px"
  93. Top_Roundify_12px.Parent = Top
  94. Top_Roundify_12px.AnchorPoint = Vector2.new(0.5, 0.5)
  95. Top_Roundify_12px.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  96. Top_Roundify_12px.BackgroundTransparency = 1.000
  97. Top_Roundify_12px.Position = UDim2.new(0.5, 0, 0.5, 0)
  98. Top_Roundify_12px.Size = UDim2.new(1, 0, 1, 0)
  99. Top_Roundify_12px.Image = "rbxassetid://3570695787"
  100. Top_Roundify_12px.ImageColor3 = Color3.fromRGB(239, 239, 239)
  101. Top_Roundify_12px.ScaleType = Enum.ScaleType.Slice
  102. Top_Roundify_12px.SliceCenter = Rect.new(100, 100, 100, 100)
  103. Top_Roundify_12px.SliceScale = 0.120
  104.  
  105. Left.Name = "Left"
  106. Left.Parent = Main
  107. Left.BackgroundColor3 = Color3.fromRGB(239, 239, 239)
  108. Left.BorderSizePixel = 0
  109. Left.Position = UDim2.new(0, 0, 0.12396694, 0)
  110. Left.Size = UDim2.new(0, 36, 0, 24)
  111. Left.Font = Enum.Font.SourceSans
  112. Left.Text = " "
  113. Left.TextColor3 = Color3.fromRGB(0, 0, 0)
  114. Left.TextSize = 14.000
  115.  
  116. Right.Name = "Right"
  117. Right.Parent = Main
  118. Right.BackgroundColor3 = Color3.fromRGB(239, 239, 239)
  119. Right.BorderSizePixel = 0
  120. Right.Position = UDim2.new(0.90476191, 0, 0.12396694, 0)
  121. Right.Size = UDim2.new(0, 36, 0, 24)
  122. Right.Font = Enum.Font.SourceSans
  123. Right.Text = " "
  124. Right.TextColor3 = Color3.fromRGB(0, 0, 0)
  125. Right.TextSize = 14.000
  126.  
  127. Title.Name = "Title"
  128. Title.Parent = Main
  129. Title.BackgroundColor3 = Color3.fromRGB(239, 239, 239)
  130. Title.BackgroundTransparency = 1.000
  131. Title.BorderSizePixel = 0
  132. Title.Position = UDim2.new(0.0185185075, 0, 0.02892562, 0)
  133. Title.Size = UDim2.new(0, 116, 0, 39)
  134. Title.Font = Enum.Font.SourceSansLight
  135. Title.Text = "Moon Hub"
  136. Title.TextColor3 = Color3.fromRGB(0, 0, 0)
  137. Title.TextScaled = true
  138. Title.TextSize = 14.000
  139. Title.TextWrapped = true
  140.  
  141. Exit.Name = "Exit"
  142. Exit.Parent = Main
  143. Exit.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  144. Exit.BackgroundTransparency = 1.000
  145. Exit.BorderSizePixel = 0
  146. Exit.Position = UDim2.new(0.904999971, 0, 0.0579999983, 0)
  147. Exit.Size = UDim2.new(0, 23, 0, 25)
  148. Exit.Font = Enum.Font.SourceSans
  149. Exit.Text = " "
  150. Exit.TextColor3 = Color3.fromRGB(0, 0, 0)
  151. Exit.TextSize = 14.000
  152. Exit.MouseButton1Down:Connect(function()
  153. Main:Destroy()
  154. end)
  155.  
  156. Exit_Roundify_12px.Name = "Exit_Roundify_12px"
  157. Exit_Roundify_12px.Parent = Exit
  158. Exit_Roundify_12px.Active = true
  159. Exit_Roundify_12px.AnchorPoint = Vector2.new(0.5, 0.5)
  160. Exit_Roundify_12px.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  161. Exit_Roundify_12px.BackgroundTransparency = 1.000
  162. Exit_Roundify_12px.Position = UDim2.new(0.5, 0, 0.5, 0)
  163. Exit_Roundify_12px.Selectable = true
  164. Exit_Roundify_12px.Size = UDim2.new(1, 0, 1, 0)
  165. Exit_Roundify_12px.Image = "rbxassetid://3570695787"
  166. Exit_Roundify_12px.ImageColor3 = Color3.fromRGB(255, 0, 0)
  167. Exit_Roundify_12px.ScaleType = Enum.ScaleType.Slice
  168. Exit_Roundify_12px.SliceCenter = Rect.new(100, 100, 100, 100)
  169. Exit_Roundify_12px.SliceScale = 0.120
  170.  
  171. Send.Name = "Send"
  172. Send.Parent = Main
  173. Send.BackgroundColor3 = Color3.fromRGB(239, 239, 239)
  174. Send.BorderSizePixel = 0
  175. Send.Position = UDim2.new(0.293888807, 0, 0.731553733, 0)
  176. Send.Size = UDim2.new(0, 155, 0, 36)
  177. Send.Font = Enum.Font.SourceSansLight
  178. Send.Text = "SEND"
  179. Send.TextColor3 = Color3.fromRGB(0, 0, 0)
  180. Send.TextScaled = true
  181. Send.TextSize = 14.000
  182. Send.TextWrapped = true
  183. Send.MouseButton1Down:Connect(function()
  184. --https://v3rmillion.net/showthread.php?tid=1063479
  185. --You do need to be wearing the hat yourself
  186. local hatid = ID.Text
  187. local hatname = game:GetObjects("rbxassetid://".. hatid)[1].Name
  188. local victimname = Victim.Text
  189.  
  190. local plrs = game:GetService("Players")
  191. local plr = plrs.LocalPlayer
  192. local hat = plr.Character:FindFirstChild(hatname)
  193. local hatc = hat:Clone()
  194. hatc.Parent = plr.Character
  195. local bp = Instance.new("BodyPosition", hat.Handle)
  196. local victim = plrs:FindFirstChild(victimname)
  197. local heartbeat = game:GetService("RunService").Heartbeat
  198.  
  199. hat.Handle.AccessoryWeld:Destroy()
  200. hatc.Handle.Transparency = 1
  201.  
  202. if getgenv().netted then
  203. if getgenv().netted == false then
  204. spawn(function()
  205. plrs.PlayerAdded:Connect(function(player)
  206. player.MaximumSimulationRadius = 0.1;
  207. sethiddenproperty(player, "SimulationRadius", 0);
  208. end)
  209.  
  210. for _,player in pairs(plrs:GetPlayers()) do
  211. if player ~= plr then
  212. player.MaximumSimulationRadius = 0.1;
  213. sethiddenproperty(player, "SimulationRadius", 0);
  214. end
  215. end
  216.  
  217. while true do
  218. heartbeat:Wait();
  219. settings().Physics.AllowSleep = false;
  220. plr.MaximumSimulationRadius = math.huge;
  221. if setsimulationradius then
  222. setsimulationradius(math.huge);
  223. else
  224. sethiddenproperty(plr, "SimulationRadius", math.huge);
  225. end
  226. end
  227. end)
  228. end
  229. else
  230. getgenv().netted = true
  231. spawn(function()
  232. plrs.PlayerAdded:Connect(function(player)
  233. player.MaximumSimulationRadius = 0.1;
  234. sethiddenproperty(player, "SimulationRadius", 0);
  235. end)
  236.  
  237. for _,player in pairs(plrs:GetPlayers()) do
  238. if player ~= plr then
  239. player.MaximumSimulationRadius = 0.1;
  240. sethiddenproperty(player, "SimulationRadius", 0);
  241. end
  242. end
  243.  
  244. while true do
  245. heartbeat:Wait();
  246. settings().Physics.AllowSleep = false;
  247. plr.MaximumSimulationRadius = math.huge;
  248. if setsimulationradius then
  249. setsimulationradius(math.huge);
  250. else
  251. sethiddenproperty(plr, "SimulationRadius", math.huge);
  252. end
  253. end
  254. end)
  255. end
  256.  
  257. local function weld(attachment0, attachment1, part0)
  258. local weldpos = Instance.new("AlignPosition", part0)
  259. weldpos.Attachment0 = attachment0
  260. weldpos.Attachment1 = attachment1
  261. weldpos.RigidityEnabled = false
  262. weldpos.ReactionForceEnabled = false
  263. weldpos.ApplyAtCenterOfMass = false
  264. weldpos.MaxForce = 5000
  265. weldpos.MaxVelocity = 5000
  266. weldpos.Responsiveness = 200
  267. local weldrot = Instance.new("AlignOrientation", part0)
  268. weldrot.Attachment0 = attachment0
  269. weldrot.Attachment1 = attachment1
  270. weldrot.ReactionTorqueEnabled = true
  271. weldrot.PrimaryAxisOnly = false
  272. weldrot.MaxTorque = 1000
  273. weldrot.MaxAngularVelocity = 1000
  274. weldrot.Responsiveness = 200
  275. end
  276.  
  277. local attname = hat.Handle:FindFirstChildOfClass("Attachment").Name
  278.  
  279. if victim.Character:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  280. if victim.Character.Torso:FindFirstChild(attname) then
  281. hatc.Handle.AccessoryWeld.Part1 = victim.Character.Torso
  282. elseif victim.Character.Head:FindFirstChild(attname) then
  283. hatc.Handle.AccessoryWeld.Part1 = victim.Character.Head
  284. end
  285. else
  286. if victim.Character.UpperTorso:FindFirstChild(attname) then
  287. hatc.Handle.AccessoryWeld.Part1 = victim.Character.UpperTorso
  288. elseif victim.Character.Head:FindFirstChild(attname) then
  289. hatc.Handle.AccessoryWeld.Part1 = victim.Character.Head
  290. end
  291. end
  292.  
  293. bp.Position = hatc.Handle.Position
  294. bp.D = 999999999999999
  295. bp.P = 999999999999999999999999999999
  296. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  297.  
  298. spawn(function()
  299. repeat
  300. heartbeat:Wait()
  301. bp.Position = hatc.Handle.Position
  302. hat.Handle.Orientation = hatc.Handle.Orientation
  303. until (bp == nil)
  304. end)
  305.  
  306. plr.CharacterRemoving:Connect(function()
  307. if (bp ~= nil) then
  308. bp = nil
  309. end
  310. end)
  311.  
  312. plrs.PlayerRemoving:Connect(function(player)
  313. if player == victim then
  314. hatc:Destroy()
  315. hat:Destroy()
  316. end
  317. end)
  318.  
  319. victim.CharacterAdded:Connect(function(chary)
  320. hatc.Handle.CanCollide = false
  321. hat.Handle.CanCollide = false
  322. repeat wait() until victim.Character:FindFirstChildOfClass("Humanoid")
  323. wait()
  324. local hum = victim.Character:FindFirstChildOfClass("Humanoid")
  325. if hum.RigType == Enum.HumanoidRigType.R6 then
  326. repeat wait() until chary:FindFirstChild("Head")
  327. repeat wait() until chary:FindFirstChild("Torso")
  328. else
  329. repeat wait() until chary:FindFirstChild("Head")
  330. repeat wait() until chary:FindFirstChild("UpperTorso")
  331. end
  332. hatc.Handle.Anchored = false
  333. if hum.RigType == Enum.HumanoidRigType.R6 then
  334. if victim.Character.Torso:FindFirstChild(attname) then
  335. hatc.Handle.AccessoryWeld.Part1 = victim.Character.Torso
  336. elseif victim.Character.Head:FindFirstChild(attname) then
  337. hatc.Handle.AccessoryWeld.Part1 = victim.Character.Head
  338. end
  339. else
  340. if victim.Character.UpperTorso:FindFirstChild(attname) then
  341. hatc.Handle.AccessoryWeld.Part1 = victim.Character.UpperTorso
  342. elseif victim.Character.Head:FindFirstChild(attname) then
  343. hatc.Handle.AccessoryWeld.Part1 = victim.Character.Head
  344. end
  345. end
  346. end)
  347.  
  348. victim.Character:FindFirstChildOfClass("Humanoid").Died:Connect(function()
  349. hatc.Handle.CanCollide = true
  350. hat.Handle.CanCollide = true
  351. end)
  352. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement