Advertisement
wallop560

Untitled

Mar 25th, 2020
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.43 KB | None | 0 0
  1. --[[
  2. --wallops draw gui
  3. --]]
  4.  
  5.  
  6.  
  7. -- Instances:
  8. local SpawnBrick = Instance.new("RemoteEvent",game.ReplicatedStorage)
  9. SpawnBrick.Name = "SpawnBrick"
  10. local clonegui = Instance.new("ScreenGui")
  11. local main = Instance.new("Frame")
  12. local ammount = Instance.new("TextBox")
  13. local text = Instance.new("TextLabel")
  14. local go = Instance.new("TextButton")
  15. local settingsbut = Instance.new("TextButton")
  16. local settings_2 = Instance.new("Frame")
  17. local sizetxt = Instance.new("TextBox")
  18. local colortxt = Instance.new("TextBox")
  19. local label = Instance.new("TextLabel")
  20. local colorlab = Instance.new("TextLabel")
  21. local Sizelab = Instance.new("TextLabel")
  22. local onoff_1 = Instance.new("BoolValue")
  23. local onoff_2 = Instance.new("BoolValue")
  24. local onoff_3 = Instance.new("BoolValue")
  25. local Playerlab = Instance.new("TextLabel")
  26. local Playertxt = Instance.new("TextBox")
  27. local transtxt = Instance.new("TextBox")
  28. local Translab = Instance.new("TextLabel")
  29. local Colidetgl = Instance.new("TextButton")
  30. local colidelab = Instance.new("TextLabel")
  31. local Delaylab = Instance.new("TextLabel")
  32. local Delaytgl = Instance.new("TextButton")
  33. local Anchorlab = Instance.new("TextLabel")
  34. local Anchortgl = Instance.new("TextButton")
  35. local Delaytxt = Instance.new("TextBox")
  36. local Delay2lab = Instance.new("TextLabel")
  37. --[[
  38.     Properties:
  39. --]]
  40.  
  41. clonegui.Name = "clone"
  42. clonegui.Parent = game.Players.LocalPlayer.PlayerGui
  43. clonegui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  44.  
  45. main.Name = "main"
  46. main.Parent = clonegui
  47. main.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
  48. main.BorderSizePixel = 0
  49. main.Draggable = true
  50. main.Position = UDim2.new(0.0451713204, 0, 0.396721303, 0)
  51. main.Size = UDim2.new(0, 105, 0, 125)
  52.  
  53. ammount.Name = "ammount"
  54. ammount.Parent = main
  55. ammount.BackgroundColor3 = Color3.new(0.490196, 0.490196, 0.490196)
  56. ammount.BorderSizePixel = 0
  57. ammount.Position = UDim2.new(0.161904767, 0, 0.206270248, 0)
  58. ammount.Size = UDim2.new(0, 72, 0, 20)
  59. ammount.Font = Enum.Font.SourceSans
  60. ammount.Text = "10"
  61. ammount.TextColor3 = Color3.new(0, 0, 0)
  62. ammount.TextSize = 14
  63.  
  64. text.Name = "text"
  65. text.Parent = main
  66. text.BackgroundColor3 = Color3.new(1, 1, 1)
  67. text.BackgroundTransparency = 1
  68. text.BorderSizePixel = 0
  69. text.Position = UDim2.new(0.152380884, 0, 0.050090082, 0)
  70. text.Size = UDim2.new(0, 73, 0, 20)
  71. text.Font = Enum.Font.SourceSans
  72. text.Text = "ammount"
  73. text.TextColor3 = Color3.new(0, 0, 0)
  74. text.TextSize = 14
  75.  
  76. go.Name = "go"
  77. go.Parent = main
  78. go.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  79. go.BorderSizePixel = 0
  80. go.Position = UDim2.new(0.161904767, 0, 0.429549515, 0)
  81. go.Size = UDim2.new(0, 72, 0, 27)
  82. go.Font = Enum.Font.SourceSans
  83. go.Text = "GO!"
  84. go.TextColor3 = Color3.new(0, 0, 0)
  85. go.TextScaled = true
  86. go.TextSize = 14
  87. go.TextWrapped = true
  88.  
  89. settingsbut.Name = "settingsbut"
  90. settingsbut.Parent = main
  91. settingsbut.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  92. settingsbut.BorderSizePixel = 0
  93. settingsbut.Position = UDim2.new(0.161904767, 0, 0.70154953, 0)
  94. settingsbut.Size = UDim2.new(0, 72, 0, 27)
  95. settingsbut.Font = Enum.Font.SourceSans
  96. settingsbut.Text = "Settings"
  97. settingsbut.TextColor3 = Color3.new(0, 0, 0)
  98. settingsbut.TextScaled = true
  99. settingsbut.TextSize = 14
  100. settingsbut.TextWrapped = true
  101. settingsbut.MouseButton1Click:Connect(function()
  102.     if settings_2.Visible == true then
  103.         settings_2.Visible = false
  104.     elseif settings_2.Visible == false then
  105.         settings_2.Visible = true
  106.     end
  107. end)
  108.  
  109. settings_2.Name = "settings"
  110. settings_2.Parent = clonegui
  111. settings_2.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
  112. settings_2.BorderColor3 = Color3.new(1, 1, 1)
  113. settings_2.BorderSizePixel = 0
  114. settings_2.Position = UDim2.new(0.433800638, 0, 0.249180332, 0)
  115. settings_2.Size = UDim2.new(0, 530, 0, 256)
  116. settings_2.Visible = false
  117.  
  118. sizetxt.Name = "sizetxt"
  119. sizetxt.Parent = settings_2
  120. sizetxt.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  121. sizetxt.BorderSizePixel = 0
  122. sizetxt.Position = UDim2.new(0.0171864927, 0, 0.348823607, 0)
  123. sizetxt.Size = UDim2.new(0, 126, 0, 26)
  124. sizetxt.Font = Enum.Font.SourceSans
  125. sizetxt.Text = "2,1,2"
  126. sizetxt.TextColor3 = Color3.new(0, 0, 0)
  127. sizetxt.TextScaled = true
  128. sizetxt.TextSize = 14
  129. sizetxt.TextWrapped = true
  130.  
  131. colortxt.Name = "colortxt"
  132. colortxt.Parent = settings_2
  133. colortxt.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  134. colortxt.BorderSizePixel = 0
  135. colortxt.Position = UDim2.new(0.0189499594, 0, 0.0885646939, 0)
  136. colortxt.Size = UDim2.new(0, 126, 0, 26)
  137. colortxt.Font = Enum.Font.SourceSans
  138. colortxt.Text = "85,85,85"
  139. colortxt.TextColor3 = Color3.new(0, 0, 0)
  140. colortxt.TextScaled = true
  141. colortxt.TextSize = 14
  142. colortxt.TextWrapped = true
  143.  
  144. label.Name = "label"
  145. label.Parent = settings_2
  146. label.BackgroundColor3 = Color3.new(1, 1, 1)
  147. label.BackgroundTransparency = 1
  148. label.Position = UDim2.new(0.366611928, 0, 0, 0)
  149. label.Size = UDim2.new(0, 141, 0, 23)
  150. label.Font = Enum.Font.SourceSans
  151. label.Text = "Settings"
  152. label.TextColor3 = Color3.new(0, 0, 0)
  153. label.TextSize = 25
  154.  
  155. colorlab.Name = "colorlab"
  156. colorlab.Parent = settings_2
  157. colorlab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  158. colorlab.BorderSizePixel = 0
  159. colorlab.Position = UDim2.new(0.0367547125, 0, 0.215885162, 0)
  160. colorlab.Size = UDim2.new(0, 103, 0, 15)
  161. colorlab.Font = Enum.Font.SourceSans
  162. colorlab.Text = "color"
  163. colorlab.TextColor3 = Color3.new(0, 0, 0)
  164. colorlab.TextSize = 14
  165.  
  166. Sizelab.Name = "Sizelab"
  167. Sizelab.Parent = settings_2
  168. Sizelab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  169. Sizelab.BorderSizePixel = 0
  170. Sizelab.Position = UDim2.new(0.0367547125, 0, 0.470216393, 0)
  171. Sizelab.Size = UDim2.new(0, 103, 0, 15)
  172. Sizelab.Font = Enum.Font.SourceSans
  173. Sizelab.Text = "Size"
  174. Sizelab.TextColor3 = Color3.new(0, 0, 0)
  175. Sizelab.TextSize = 14
  176.  
  177. Playerlab.Name = "Playerlab"
  178. Playerlab.Parent = settings_2
  179. Playerlab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  180. Playerlab.BorderSizePixel = 0
  181. Playerlab.Position = UDim2.new(0.0383407101, 0, 0.715437651, 0)
  182. Playerlab.Size = UDim2.new(0, 103, 0, 15)
  183. Playerlab.Font = Enum.Font.SourceSans
  184. Playerlab.Text = "Player"
  185. Playerlab.TextColor3 = Color3.new(0, 0, 0)
  186. Playerlab.TextSize = 14
  187.  
  188. Playertxt.Name = "Playertxt"
  189. Playertxt.Parent = settings_2
  190. Playertxt.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  191. Playertxt.BorderSizePixel = 0
  192. Playertxt.Position = UDim2.new(0.0171864927, 0, 0.591011107, 0)
  193. Playertxt.Size = UDim2.new(0, 126, 0, 26)
  194. Playertxt.Font = Enum.Font.SourceSans
  195. Playertxt.Text = "me"
  196. Playertxt.TextColor3 = Color3.new(0, 0, 0)
  197. Playertxt.TextScaled = true
  198. Playertxt.TextSize = 14
  199. Playertxt.TextWrapped = true
  200.  
  201. transtxt.Name = "transtxt"
  202. transtxt.Parent = settings_2
  203. transtxt.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  204. transtxt.BorderSizePixel = 0
  205. transtxt.Position = UDim2.new(0.366119772, 0, 0.0885646939, 0)
  206. transtxt.Size = UDim2.new(0, 126, 0, 26)
  207. transtxt.Font = Enum.Font.SourceSans
  208. transtxt.Text = "0"
  209. transtxt.TextColor3 = Color3.new(0, 0, 0)
  210. transtxt.TextScaled = true
  211. transtxt.TextSize = 14
  212. transtxt.TextWrapped = true
  213.  
  214. Translab.Name = "Translab"
  215. Translab.Parent = settings_2
  216. Translab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  217. Translab.BorderSizePixel = 0
  218. Translab.Position = UDim2.new(0.387698114, 0, 0.215885162, 0)
  219. Translab.Size = UDim2.new(0, 103, 0, 15)
  220. Translab.Font = Enum.Font.SourceSans
  221. Translab.Text = "Transparency"
  222. Translab.TextColor3 = Color3.new(0, 0, 0)
  223. Translab.TextSize = 14
  224.  
  225. Colidetgl.Name = "Colidetgl"
  226. Colidetgl.Parent = settings_2
  227. Colidetgl.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  228. Colidetgl.BorderSizePixel = 0
  229. Colidetgl.Position = UDim2.new(0.366037726, 0, 0.36328125, 0)
  230. Colidetgl.Size = UDim2.new(0, 126, 0, 26)
  231. Colidetgl.Font = Enum.Font.SourceSans
  232. Colidetgl.Text = "Toggle"
  233. Colidetgl.TextColor3 = Color3.new(0, 0, 0)
  234. Colidetgl.TextScaled = true
  235. Colidetgl.TextSize = 14
  236. Colidetgl.TextWrapped = true
  237.  
  238. colidelab.Name = "colidelab"
  239. colidelab.Parent = settings_2
  240. colidelab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  241. colidelab.BorderSizePixel = 0
  242. colidelab.Position = UDim2.new(0.387698114, 0, 0.501041412, 0)
  243. colidelab.Size = UDim2.new(0, 103, 0, 15)
  244. colidelab.Font = Enum.Font.SourceSans
  245. colidelab.Text = "Collide on"
  246. colidelab.TextColor3 = Color3.new(0, 0, 0)
  247. colidelab.TextSize = 14
  248.  
  249. Delaylab.Name = "Delaylab"
  250. Delaylab.Parent = settings_2
  251. Delaylab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  252. Delaylab.BorderSizePixel = 0
  253. Delaylab.Position = UDim2.new(0.385811329, 0, 0.727603912, 0)
  254. Delaylab.Size = UDim2.new(0, 103, 0, 15)
  255. Delaylab.Font = Enum.Font.SourceSans
  256. Delaylab.Text = "Dellay off"
  257. Delaylab.TextColor3 = Color3.new(0, 0, 0)
  258. Delaylab.TextSize = 14
  259.  
  260. Delaytgl.Name = "Delaytgl"
  261. Delaytgl.Parent = settings_2
  262. Delaytgl.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  263. Delaytgl.BorderSizePixel = 0
  264. Delaytgl.Position = UDim2.new(0.364150941, 0, 0.58984375, 0)
  265. Delaytgl.Size = UDim2.new(0, 126, 0, 26)
  266. Delaytgl.Font = Enum.Font.SourceSans
  267. Delaytgl.Text = "Toggle"
  268. Delaytgl.TextColor3 = Color3.new(0, 0, 0)
  269. Delaytgl.TextScaled = true
  270. Delaytgl.TextSize = 14
  271. Delaytgl.TextWrapped = true
  272.  
  273. Anchorlab.Name = "Anchorlab"
  274. Anchorlab.Parent = settings_2
  275. Anchorlab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  276. Anchorlab.BorderSizePixel = 0
  277. Anchorlab.Position = UDim2.new(0.714113235, 0, 0.727603912, 0)
  278. Anchorlab.Size = UDim2.new(0, 103, 0, 15)
  279. Anchorlab.Font = Enum.Font.SourceSans
  280. Anchorlab.Text = "Anchor off"
  281. Anchorlab.TextColor3 = Color3.new(0, 0, 0)
  282. Anchorlab.TextSize = 14
  283.  
  284. Anchortgl.Name = "Anchortgl"
  285. Anchortgl.Parent = settings_2
  286. Anchortgl.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  287. Anchortgl.BorderSizePixel = 0
  288. Anchortgl.Position = UDim2.new(0.692452788, 0, 0.58984375, 0)
  289. Anchortgl.Size = UDim2.new(0, 126, 0, 26)
  290. Anchortgl.Font = Enum.Font.SourceSans
  291. Anchortgl.Text = "Toggle"
  292. Anchortgl.TextColor3 = Color3.new(0, 0, 0)
  293. Anchortgl.TextScaled = true
  294. Anchortgl.TextSize = 14
  295. Anchortgl.TextWrapped = true
  296.  
  297.  
  298. Delaytxt.Name = "Delaytxt"
  299. Delaytxt.Parent = settings_2
  300. Delaytxt.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  301. Delaytxt.BorderSizePixel = 0
  302. Delaytxt.Position = UDim2.new(0.691, 0,0.089, 0)
  303. Delaytxt.Size = UDim2.new(0, 126, 0, 26)
  304. Delaytxt.Font = Enum.Font.SourceSans
  305. Delaytxt.Text = "1"
  306. Delaytxt.TextColor3 = Color3.new(0, 0, 0)
  307. Delaytxt.TextScaled = true
  308. Delaytxt.TextSize = 14
  309. Delaytxt.TextWrapped = true
  310.  
  311. Delay2lab.Name = "Delay2lab"
  312. Delay2lab.Parent = settings_2
  313. Delay2lab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  314. Delay2lab.BorderSizePixel = 0
  315. Delay2lab.Position = UDim2.new(0.712, 0,0.216, 0)
  316. Delay2lab.Size = UDim2.new(0, 103,0, 15)
  317. Delay2lab.Text = "Delay time"
  318. Delay2lab.TextColor3 = Color3.new(0, 0, 0)
  319. Delay2lab.TextScaled = true
  320. Delay2lab.TextSize = 14
  321. Delay2lab.TextWrapped = true
  322.  
  323.  
  324. onoff_1.Name = "on/off"
  325. onoff_1.Parent = Anchortgl
  326. onoff_1.Value = false
  327.  
  328. onoff_2.Name = "on/off"
  329. onoff_2.Parent = Colidetgl
  330. onoff_2.Value = true
  331.  
  332. onoff_3.Name = "on/off"
  333. onoff_3.Parent = Delaytgl
  334. onoff_3.Value = false
  335.  
  336. --scripts
  337. local config = settings_2
  338.     local char = game.Players.LocalPlayer.Character
  339.     local hat = char:FindFirstChildOfClass("Accessory")
  340.     local collide = true
  341.     local Dellay = false
  342.     local Anchor = false
  343.    
  344.    
  345.    
  346.     Colidetgl.MouseButton1Click:Connect(function()
  347.     if onoff_2.Value == true then
  348.         colidelab.Text = "Collide off"
  349.         collide = false
  350.         onoff_2.Value = false
  351.     elseif onoff_2.Value == false then
  352.         colidelab.Text = "Collide on"
  353.         collide = true
  354.         onoff_2.Value = true
  355.    
  356.     end
  357.     end)
  358.     Delaytgl.MouseButton1Click:Connect(function()
  359.     if onoff_3.Value == true then
  360.         Delaylab.Text = "Dellay off"
  361.         Dellay = false
  362.         onoff_3.Value = false
  363.     elseif onoff_3.Value == false then
  364.         Delaylab.Text = "Dellay on"
  365.         Dellay = true
  366.         onoff_3.Value = true
  367.    
  368.     end
  369.     end)
  370.     config.Anchortgl.MouseButton1Click:Connect(function()
  371.     if onoff_1.Value == true then
  372.         Anchorlab.Text = "Anchor off"
  373.         Anchor = false
  374.         onoff_1.Value = false
  375.     elseif onoff_1.Value == false then
  376.         Anchorlab.Text = "Anchor on"
  377.         Anchor = true
  378.         onoff_1.Value = true
  379.    
  380.     end
  381.     end)
  382.    
  383.    
  384.    
  385.     go.MouseButton1Click:Connect(function()
  386.     local Player = config.Playertxt
  387.     local actPlayer = nil
  388.     if Player.Text == "me" then
  389.          actPlayer = char.Name
  390.     else
  391.         actPlayer = Player.Text
  392.     end
  393.     local rgb = string.split(config.colortxt.Text, ",")
  394.     local red = tonumber(rgb[1])
  395.     local green = tonumber(rgb[2])
  396.     local blue = tonumber(rgb[3])
  397.     local xyz = string.split(config.sizetxt.Text, ",")
  398.     local X = tonumber(xyz[1])
  399.     local Y = tonumber(xyz[2])
  400.     local Z = tonumber(xyz[3])
  401.     local cloning = 0
  402.    
  403.     for cloning = 1, ammount.Text do
  404.     if Dellay == true then
  405.         wait(Delaytxt.Text / 10)
  406.     end
  407.     local transparency = (config.transtxt.Text / 100)
  408.     local color = Color3.new(red,green,blue)
  409.     local size = Vector3.new(X,Y,Z)
  410.     local pos = game.Players[actPlayer].Character.Head.CFrame
  411.     local info = {transparency , color, size, collide, Anchor, pos}
  412.     game.ReplicatedStorage.SpawnBrick:FireServer(unpack(info))
  413.  
  414.     end
  415.     end)
  416.    
  417.    
  418.    
  419.    
  420.    
  421.    
  422.    
  423.    
  424. local UserInputService = game:GetService("UserInputService")
  425.  
  426. local gui = settings_2
  427.  
  428. local dragging
  429. local dragInput
  430. local dragStart
  431. local startPos
  432.  
  433. local function update(input)
  434.     local delta = input.Position - dragStart
  435.     gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  436. end
  437.  
  438. gui.InputBegan:Connect(function(input)
  439.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  440.         dragging = true
  441.         dragStart = input.Position
  442.         startPos = gui.Position
  443.        
  444.         input.Changed:Connect(function()
  445.             if input.UserInputState == Enum.UserInputState.End then
  446.                 dragging = false
  447.             end
  448.         end)
  449.     end
  450. end)
  451.  
  452. gui.InputChanged:Connect(function(input)
  453.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  454.         dragInput = input
  455.     end
  456. end)
  457.  
  458. UserInputService.InputChanged:Connect(function(input)
  459.     if input == dragInput and dragging then
  460.         update(input)
  461.     end
  462. end)
  463.    
  464.    
  465. local UserInputService = game:GetService("UserInputService")
  466.  
  467. local gui = main
  468.  
  469. local dragging
  470. local dragInput
  471. local dragStart
  472. local startPos
  473.  
  474. local function update(input)
  475.     local delta = input.Position - dragStart
  476.     gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  477. end
  478.  
  479. gui.InputBegan:Connect(function(input)
  480.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  481.         dragging = true
  482.         dragStart = input.Position
  483.         startPos = gui.Position
  484.        
  485.         input.Changed:Connect(function()
  486.             if input.UserInputState == Enum.UserInputState.End then
  487.                 dragging = false
  488.             end
  489.         end)
  490.     end
  491. end)
  492.  
  493. gui.InputChanged:Connect(function(input)
  494.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  495.         dragInput = input
  496.     end
  497. end)
  498.  
  499. UserInputService.InputChanged:Connect(function(input)
  500.     if input == dragInput and dragging then
  501.         update(input)
  502.     end
  503. end)
  504.    
  505. local event = game.ReplicatedStorage.SpawnBrick
  506.  
  507. local function RMRW_fake_script() -- go.LocalScript
  508. local script = Instance.new('Script', game:GetService("ServerScriptService"))
  509. event.OnServerEvent:Connect(function(Player,Transparency,Color,Size,CanCollide,Anchored,position)
  510.     local clone = Instance.new("Part",workspace)
  511.     clone.Transparency = Transparency
  512.     clone.Color = Color
  513.     clone.Size = Size
  514.     clone.CanCollide = CanCollide
  515.     clone.Anchored = Anchored
  516.     clone.CFrame = position
  517.     if Anchored == true then
  518.         clone.CanCollide = false
  519.         wait(0.4)
  520.         clone.CanCollide = CanCollide
  521.     end
  522.    
  523. end)
  524. end
  525. coroutine.wrap(RMRW_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement