Advertisement
EpicHackerman

hat

Oct 7th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5. spawn(function()
  6. while true do
  7. game:GetService("RunService").Heartbeat:Wait()
  8. game:GetService("Players").LocalPlayer.MaximumSimulationRadius = math.huge;
  9. setsimulationradius(math.huge);
  10. end
  11. end)
  12. local HAT = Instance.new("ScreenGui")
  13. local Frame = Instance.new("Frame")
  14. local bar = Instance.new("Frame")
  15. local whitebaridk = Instance.new("Frame")
  16. local stuff = Instance.new("TextBox")
  17. local start = Instance.new("TextButton")
  18. local stop = Instance.new("TextButton")
  19.  
  20. local TextLabel = Instance.new("TextLabel")
  21.  
  22. --Properties:
  23.  
  24. HAT.Name = "HAT"
  25. HAT.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  26. HAT.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  27.  
  28.  
  29. Frame.Parent = HAT
  30. Frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  31. Frame.BorderSizePixel = 0
  32. Frame.Position = UDim2.new(0.334545463, 0, 0.326781332, 0)
  33. Frame.Size = UDim2.new(0, 228, 0, 184)
  34.  
  35. bar.Name = "bar"
  36. bar.Parent = Frame
  37. bar.BackgroundColor3 = Color3.fromRGB(16, 16, 16)
  38. bar.BorderColor3 = Color3.fromRGB(53, 53, 53)
  39. bar.BorderSizePixel = 0
  40. bar.Size = UDim2.new(0, 228, 0, 30)
  41.  
  42. whitebaridk.Name = "whitebaridk"
  43. whitebaridk.Parent = Frame
  44. whitebaridk.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  45. whitebaridk.BorderSizePixel = 0
  46. whitebaridk.Position = UDim2.new(0, 0, 0.162010416, 0)
  47. whitebaridk.Size = UDim2.new(0, 228, 0, 4)
  48.  
  49. stuff.Name = "stuff"
  50. stuff.Parent = Frame
  51. stuff.BackgroundColor3 = Color3.fromRGB(29, 29, 29)
  52. stuff.BorderColor3 = Color3.fromRGB(30, 30, 30)
  53. stuff.BorderSizePixel = 2
  54. stuff.Position = UDim2.new(0.0614035092, 0, 0.248562723, 0)
  55. stuff.Size = UDim2.new(0, 200, 0, 27)
  56. stuff.Font = Enum.Font.SourceSans
  57. stuff.Text = ""
  58. stuff.TextColor3 = Color3.fromRGB(0, 0, 0)
  59. stuff.TextSize = 14.000
  60.  
  61. start.Name = "start"
  62. start.Parent = Frame
  63. start.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  64. start.Position = UDim2.new(0.0614035092, 0, 0.451086968, 0)
  65. start.Size = UDim2.new(0, 200, 0, 26)
  66. start.Font = Enum.Font.SourceSans
  67. start.Text = "Start"
  68. start.TextColor3 = Color3.fromRGB(255, 255, 255)
  69. start.TextSize = 20.000
  70.  
  71. stop.Name = "stop"
  72. stop.Parent = Frame
  73. stop.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  74. stop.Position = UDim2.new(0.0614035092, 0, 0.652173936, 0)
  75. stop.Size = UDim2.new(0, 200, 0, 26)
  76. stop.Font = Enum.Font.SourceSans
  77. stop.Text = "Stop"
  78. stop.TextColor3 = Color3.fromRGB(255, 255, 255)
  79. stop.TextSize = 20.000
  80.  
  81. TextLabel.Parent = Frame
  82. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  83. TextLabel.BackgroundTransparency = 1.000
  84. TextLabel.Position = UDim2.new(0.0614035092, 0, 0, 0)
  85. TextLabel.Size = UDim2.new(0, 200, 0, 29)
  86. TextLabel.Font = Enum.Font.GothamBold
  87. TextLabel.Text = "HAT POG"
  88. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  89. TextLabel.TextSize = 25.000
  90. local doing = false
  91. local rs = game:GetService("RunService")
  92. local bandage = game.Players.LocalPlayer.Character.MeshPartAccessory
  93. Frame.Active = true
  94. Frame.Draggable = true
  95. local function findPlayer(stringg)
  96. for _, v in pairs(game.Players:GetPlayers()) do
  97. if v ~= game.Players.LocalPlayer and v.Name:lower():find(stringg:lower()) and pcall(function() return v.Character.HumanoidRootPart end) then
  98. return v
  99. end
  100. end
  101. end
  102. start.MouseButton1Click:Connect(function()
  103. print'b'
  104. doing = true
  105. print("bruh")
  106. end)
  107. stop.MouseButton1Click:Connect(function()
  108. print'a'
  109. doing = false
  110. end)
  111. bandage.Handle.AccessoryWeld:Destroy()
  112. bandage.Handle.HatAttachment:Destroy()
  113. rs.RenderStepped:Connect(function()
  114. if doing == true and stuff.Text ~= nil then
  115. local plr = findPlayer(stuff.Text)
  116. bandage.Handle.Velocity = Vector3.new(0,0,0)
  117. bandage.Handle.CFrame = CFrame.new((plr.Character.Head.CFrame) * Vector3.new(0, 0.85, 0))
  118. else
  119. bandage.Handle.Velocity = Vector3.new(0,0,0)
  120. bandage.Handle.CFrame = CFrame.new((game.Players.LocalPlayer.Character.Head.CFrame) * Vector3.new(0, 0.85, 0))
  121. end
  122. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement