Advertisement
probanana

Da Hood Snowball Gattlin GUn

Dec 22nd, 2022
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.97 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local ImageLabel = Instance.new("ImageLabel")
  8. local UICorner = Instance.new("UICorner")
  9. local PlayerImage = Instance.new("ImageLabel")
  10. local UICorner_2 = Instance.new("UICorner")
  11. local PlayerName = Instance.new("TextLabel")
  12. local MainSection = Instance.new("TextButton")
  13. local CenterFun = Instance.new("Frame")
  14. local UICorner_3 = Instance.new("UICorner")
  15. local TextButton = Instance.new("TextButton")
  16. local UICorner_4 = Instance.new("UICorner")
  17. local SnowGun = Instance.new("Frame")
  18. local UICorner_5 = Instance.new("UICorner")
  19. local TextButton_2 = Instance.new("TextButton")
  20. local TextBox = Instance.new("TextBox")
  21. local UICorner_6 = Instance.new("UICorner")
  22. local TextLabel = Instance.new("TextLabel")
  23. local TextLabel_2 = Instance.new("TextLabel")
  24.  
  25. --Properties:
  26.  
  27. ScreenGui.Parent = game:GetService("CoreGui")
  28. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  29.  
  30. ImageLabel.Parent = ScreenGui
  31. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  32. ImageLabel.BackgroundTransparency = 1.000
  33. ImageLabel.Position = UDim2.new(0.1801406, 0, 0.260598511, 0)
  34. ImageLabel.Size = UDim2.new(0, 650, 0, 450)
  35. ImageLabel.Image = "rbxassetid://11889829924"
  36.  
  37. UICorner.Parent = ImageLabel
  38.  
  39. PlayerImage.Name = "Player Image"
  40. PlayerImage.Parent = ImageLabel
  41. PlayerImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  42. PlayerImage.Position = UDim2.new(0.0153846145, 0, 0.0222222246, 0)
  43. PlayerImage.Size = UDim2.new(0, 50, 0, 50)
  44. PlayerImage.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  45.  
  46. UICorner_2.CornerRadius = UDim.new(1, 1)
  47. UICorner_2.Parent = PlayerImage
  48.  
  49. PlayerName.Name = "PlayerName"
  50. PlayerName.Parent = ImageLabel
  51. PlayerName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  52. PlayerName.BackgroundTransparency = 1.000
  53. PlayerName.BorderSizePixel = 0
  54. PlayerName.Position = UDim2.new(0.0923076943, 0, 0.0222222228, 0)
  55. PlayerName.Size = UDim2.new(0, 128, 0, 50)
  56. PlayerName.Font = Enum.Font.Unknown
  57. PlayerName.Text = "Welcome"
  58. PlayerName.TextColor3 = Color3.fromRGB(255, 255, 255)
  59. PlayerName.TextSize = 20.000
  60. PlayerName.TextWrapped = true
  61.  
  62. MainSection.Name = "Main Section"
  63. MainSection.Parent = ImageLabel
  64. MainSection.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  65. MainSection.BackgroundTransparency = 0.500
  66. MainSection.BorderSizePixel = 0
  67. MainSection.Position = UDim2.new(0.0153846154, 0, 0.175555557, 0)
  68. MainSection.Size = UDim2.new(0, 170, 0, 50)
  69. MainSection.Font = Enum.Font.Unknown
  70. MainSection.Text = "Fun"
  71. MainSection.TextColor3 = Color3.fromRGB(255, 255, 255)
  72. MainSection.TextSize = 20.000
  73. MainSection.TextWrapped = true
  74.  
  75. CenterFun.Name = "Center Fun"
  76. CenterFun.Parent = ImageLabel
  77. CenterFun.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  78. CenterFun.BackgroundTransparency = 0.500
  79. CenterFun.Position = UDim2.new(0.304615378, 0, 0.0222222228, 0)
  80. CenterFun.Size = UDim2.new(0, 442, 0, 430)
  81. CenterFun.Visible = false
  82.  
  83. UICorner_3.Parent = CenterFun
  84.  
  85. TextButton.Parent = CenterFun
  86. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87. TextButton.BackgroundTransparency = 0.900
  88. TextButton.Position = UDim2.new(0.0271493215, 0, 0.0279069766, 0)
  89. TextButton.Size = UDim2.new(0, 100, 0, 25)
  90. TextButton.Font = Enum.Font.Unknown
  91. TextButton.Text = "SnowGun"
  92. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  93. TextButton.TextScaled = true
  94. TextButton.TextSize = 14.000
  95. TextButton.TextWrapped = true
  96.  
  97. UICorner_4.Parent = TextButton
  98.  
  99. SnowGun.Name = "SnowGun"
  100. SnowGun.Parent = CenterFun
  101. SnowGun.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  102. SnowGun.BackgroundTransparency = 0.800
  103. SnowGun.Position = UDim2.new(0.339366525, 0, 0.0279069766, 0)
  104. SnowGun.Size = UDim2.new(0, 280, 0, 107)
  105. SnowGun.Visible = false
  106.  
  107. UICorner_5.Parent = SnowGun
  108.  
  109. TextButton_2.Parent = SnowGun
  110. TextButton_2.BackgroundColor3 = Color3.fromRGB(5, 22, 24)
  111. TextButton_2.Position = UDim2.new(0.0464285724, 0, 0.644859791, 0)
  112. TextButton_2.Size = UDim2.new(0, 100, 0, 25)
  113. TextButton_2.Font = Enum.Font.Unknown
  114. TextButton_2.Text = "Begin"
  115. TextButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  116. TextButton_2.TextSize = 14.000
  117.  
  118. TextBox.Parent = SnowGun
  119. TextBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  120. TextBox.BackgroundTransparency = 0.500
  121. TextBox.Position = UDim2.new(0.589285731, 0, 0.0560747646, 0)
  122. TextBox.Size = UDim2.new(0, 68, 0, 32)
  123. TextBox.Font = Enum.Font.Unknown
  124. TextBox.Text = ""
  125. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  126. TextBox.TextScaled = true
  127. TextBox.TextSize = 14.000
  128. TextBox.TextWrapped = true
  129.  
  130. UICorner_6.Parent = TextBox
  131.  
  132. TextLabel.Parent = SnowGun
  133. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  134. TextLabel.BackgroundTransparency = 1.000
  135. TextLabel.Size = UDim2.new(0, 158, 0, 38)
  136. TextLabel.Font = Enum.Font.Unknown
  137. TextLabel.Text = "Number of Balls:"
  138. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  139. TextLabel.TextScaled = true
  140. TextLabel.TextSize = 14.000
  141. TextLabel.TextWrapped = true
  142.  
  143. TextLabel_2.Parent = SnowGun
  144. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  145. TextLabel_2.BackgroundTransparency = 1.000
  146. TextLabel_2.Position = UDim2.new(0.403571427, 0, 0.644859791, 0)
  147. TextLabel_2.Size = UDim2.new(0, 156, 0, 25)
  148. TextLabel_2.Font = Enum.Font.Unknown
  149. TextLabel_2.Text = "Number Of Balls"
  150. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  151. TextLabel_2.TextScaled = true
  152. TextLabel_2.TextSize = 14.000
  153. TextLabel_2.TextWrapped = true
  154.  
  155. -- Scripts:
  156.  
  157. local function HVOYT_fake_script() -- PlayerImage.LocalScript
  158. local script = Instance.new('LocalScript', PlayerImage)
  159.  
  160. local lPlr = game:GetService("Players").LocalPlayer
  161.  
  162. script.Parent.Image = game:GetService("Players"):GetUserThumbnailAsync(lPlr.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size100x100)
  163. end
  164. coroutine.wrap(HVOYT_fake_script)()
  165. local function XYVYUFY_fake_script() -- PlayerName.LocalScript
  166. local script = Instance.new('LocalScript', PlayerName)
  167.  
  168. script.Parent.Text = "Welcome "..game.Players.LocalPlayer.Name
  169. end
  170. coroutine.wrap(XYVYUFY_fake_script)()
  171. local function IPHK_fake_script() -- ImageLabel.LocalScript
  172. local script = Instance.new('LocalScript', ImageLabel)
  173.  
  174. script.Parent.Draggable = true
  175. script.Parent.Active = true
  176.  
  177. game:GetService("UserInputService").InputBegan:Connect(function(key)
  178. if key.KeyCode == Enum.KeyCode.RightAlt then
  179. if script.Parent.Visible == false then
  180. script.Parent.Visible = true
  181. else
  182. script.Parent.Visible = false
  183. end
  184. end
  185. end)
  186.  
  187. script.Parent.ImageTransparency = 1
  188. script.Parent.BackgroundTransparency = 1
  189.  
  190. for Index,Frame in pairs(script.Parent:GetChildren()) do
  191. if Frame.ClassName == "ImageLabel" then
  192. print(Frame.Name)
  193. Frame.ImageTransparency = 1
  194. Frame.BackgroundTransparency = 1
  195. end
  196. if Frame.ClassName == "Frame" or Frame.ClassName == "TextButton" or Frame.ClassName == "TextLabel" then
  197. Frame.Visible = false
  198. end
  199. end
  200.  
  201. for Iter = 1,100 do
  202. script.Parent.ImageTransparency = script.Parent.ImageTransparency - .01
  203. task.wait()
  204. end
  205.  
  206. for Index,Frame in pairs(script.Parent:GetChildren()) do
  207. if Frame.ClassName == "ImageLabel" then
  208. Frame.ImageTransparency = 0
  209. end
  210. if Frame.ClassName == "Frame" or Frame.ClassName == "TextButton" or Frame.ClassName == "TextLabel" then
  211. if Frame.Name ~= "Center Fun" then
  212. Frame.Visible = true
  213. end
  214. end
  215. end
  216. end
  217. coroutine.wrap(IPHK_fake_script)()
  218. local function LHYCNRF_fake_script() -- MainSection.LocalScript
  219. local script = Instance.new('LocalScript', MainSection)
  220.  
  221. script.Parent.MouseButton1Click:Connect(function()
  222. if script.Parent.Parent["Center Fun"].Visible == false then
  223. script.Parent.Parent["Center Fun"].Visible = true
  224. else
  225. script.Parent.Parent["Center Fun"].Visible = false
  226. end
  227. end)
  228. end
  229. coroutine.wrap(LHYCNRF_fake_script)()
  230. local function GHWVQX_fake_script() -- TextButton.LocalScript
  231. local script = Instance.new('LocalScript', TextButton)
  232.  
  233. script.Parent.MouseButton1Click:Connect(function()
  234. if script.Parent.Parent.SnowGun.Visible == false then
  235. script.Parent.Parent.SnowGun.Visible = true
  236. else
  237. script.Parent.Parent.SnowGun.Visible = false
  238. end
  239. end)
  240. end
  241. coroutine.wrap(GHWVQX_fake_script)()
  242. local function KAAULHP_fake_script() -- TextButton_2.LocalScript
  243. local script = Instance.new('LocalScript', TextButton_2)
  244.  
  245. _G.Num = 0
  246. script.Parent.MouseButton1Click:Connect(function()
  247. local Balls = tonumber(script.Parent.Parent.TextBox.Text)
  248. local Pos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  249.  
  250. local function Start()
  251. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(492, 75, -928)
  252. wait(.5)
  253. for Iter = 1, Balls do
  254. game:GetService("ReplicatedStorage").MainEvent:FireServer("PickSnow")
  255. _G.Num = _G.Num + 1
  256. task.wait(1.05)
  257. end
  258. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Pos
  259. _G.Num = 0
  260. end
  261.  
  262. local function Trig()
  263. local Items = 0
  264. local Name = "[SnowBall]"
  265.  
  266. for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  267. if v.Name == Name then
  268. Items = Items + 1
  269. end
  270. end
  271.  
  272.  
  273.  
  274. local radius = 3
  275. local number_of_parts = Items
  276. local circle = math.pi * 2
  277. local i = 1
  278.  
  279.  
  280. for _,v in pairs(game.Players.LocalPlayer:GetDescendants()) do
  281. local angle = circle / number_of_parts * i
  282. local x_pos = math.cos(angle) * radius
  283. local y_pos = math.sin(angle) * radius
  284. if v.ClassName == "Tool" and v.Name == Name then
  285. v.Parent = game.Players.LocalPlayer.Character
  286. v.GripPos = Vector3.new(1.5 + x_pos, 1.5 + y_pos, -1)
  287. i = i + 1
  288. task.wait()
  289. end
  290. end
  291. end
  292.  
  293. local function INV_TO_PLR()
  294. local Plr = game:GetService("Players").LocalPlayer
  295. for Index,Tool in pairs(Plr.Character:GetChildren()) do
  296. if Tool:IsA("Tool") then
  297. Tool.Parent = Plr.Backpack
  298. end
  299. task.wait()
  300. end
  301. end
  302.  
  303. local function Loop()
  304. local Name = "[SnowBall]"
  305. while _G.Toggle do
  306. for Index,Tool in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  307. if Tool.Name == Name and Tool.Parent == game.Players.LocalPlayer.Backpack then
  308. pcall(function()
  309. Tool.Parent = game.Players.LocalPlayer.Character
  310. wait()
  311. Tool.Parent = game.Players.LocalPlayer.Backpack
  312. end)
  313. end
  314. if not game.Players.LocalPlayer.Backpack:FindFirstChild(Name) then
  315. _G.Toggle = false
  316. end
  317. end
  318. task.wait()
  319. end
  320. end
  321.  
  322. Start()
  323. Trig()
  324. INV_TO_PLR()
  325. _G.Toggle = true
  326. Loop()
  327.  
  328. end)
  329. end
  330. coroutine.wrap(KAAULHP_fake_script)()
  331. local function CLWHDUF_fake_script() -- TextBox.LocalScript
  332. local script = Instance.new('LocalScript', TextBox)
  333.  
  334.  
  335. end
  336. coroutine.wrap(CLWHDUF_fake_script)()
  337. local function HTHN_fake_script() -- TextLabel_2.LocalScript
  338. local script = Instance.new('LocalScript', TextLabel_2)
  339.  
  340. while true do
  341. if script.Parent.Parent.TextBox.Text ~= nil then
  342. script.Parent.Text = _G.Num.."/"..script.Parent.Parent.TextBox.Text
  343. end
  344. task.wait()
  345. end
  346. end
  347. coroutine.wrap(HTHN_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement