Advertisement
wallop560

Untitled

Apr 30th, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.46 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Targer = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. return RealPlayer[Index]
  88. end
  89. end;
  90. __tostring = function(self)
  91. return RealPlayer.Name
  92. end
  93. })
  94. end
  95. end
  96. if RealGame[Index] then
  97. local Type = type(RealGame[Index])
  98. if Type == "function" then
  99. if Index:lower() == "getservice" or Index:lower() == "service" then
  100. return function (self,Service)
  101. if Service:lower() == "players" then
  102. return setmetatable({},{
  103. __index = function (self2,Index2)
  104. local RealService = RealGame:GetService(Service)
  105. local Type2 = type(Index2)
  106. if Type2 == "function" then
  107. return function (self,...)
  108. return RealService[Index2](RealService,...)
  109. end
  110. else
  111. if Index2:lower() == "localplayer" then
  112. return Sandbox(owner)
  113. end
  114. return RealService[Index2]
  115. end
  116. end;
  117. __tostring = function(self)
  118. return RealGame:GetService(Service).Name
  119. end
  120. })
  121. elseif Service:lower() == "contextactionservice" then
  122. return InternalData["ContextActionService"]
  123. elseif Service:lower() == "contextactionservice" then
  124. return InternalData["UserInputService"]
  125. elseif Service:lower() == "runservice" then
  126. return setmetatable({},{
  127. __index = function(self2,Index2)
  128. local RealService = RealGame:GetService(Service)
  129. local Type2 = type(Index2)
  130. if Type2 == "function" then
  131. return function (self,...)
  132. return RealService[Index2](RealService,...)
  133. end
  134. else
  135. if Index2:lower() == "bindtorenderstep" then
  136. return function (self,Name,Priority,Function)
  137. return RealGame:GetService("RunService").Stepped:Connect(Function)
  138. end
  139. end
  140. if Index2:lower() == "renderstepped" then
  141. return RealService["Stepped"]
  142. end
  143. return RealService[Index2]
  144. end
  145. end
  146. })
  147. else
  148. return RealGame:GetService(Service)
  149. end
  150. end
  151. end
  152. return function (self,...)
  153. return RealGame[Index](RealGame,...)
  154. end
  155. else
  156. if game:GetService(Index) then
  157. return game:GetService(Index)
  158. end
  159. return RealGame[Index]
  160. end
  161. else
  162. return nil
  163. end
  164. end
  165. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  166. print("Complete! Running...")
  167.  
  168.  
  169. --//Paste script below this line.
  170. --[[
  171. --wallops draw gui
  172. --]]
  173.  
  174.  
  175.  
  176. -- Instances:
  177. local SpawnBrick = Instance.new("RemoteEvent",game.ReplicatedStorage)
  178. SpawnBrick.Name = "SpawnBrick"
  179. local clonegui = Instance.new("ScreenGui")
  180. local main = Instance.new("Frame")
  181. local ammount = Instance.new("TextBox")
  182. local text = Instance.new("TextLabel")
  183. local go = Instance.new("TextButton")
  184. local settingsbut = Instance.new("TextButton")
  185. local settings_2 = Instance.new("Frame")
  186. local sizetxt = Instance.new("TextBox")
  187. local colortxt = Instance.new("TextBox")
  188. local label = Instance.new("TextLabel")
  189. local colorlab = Instance.new("TextLabel")
  190. local Sizelab = Instance.new("TextLabel")
  191. local onoff_1 = Instance.new("BoolValue")
  192. local onoff_2 = Instance.new("BoolValue")
  193. local onoff_3 = Instance.new("BoolValue")
  194. local Playerlab = Instance.new("TextLabel")
  195. local Playertxt = Instance.new("TextBox")
  196. local transtxt = Instance.new("TextBox")
  197. local Translab = Instance.new("TextLabel")
  198. local Colidetgl = Instance.new("TextButton")
  199. local colidelab = Instance.new("TextLabel")
  200. local Delaylab = Instance.new("TextLabel")
  201. local Delaytgl = Instance.new("TextButton")
  202. local Anchorlab = Instance.new("TextLabel")
  203. local Anchortgl = Instance.new("TextButton")
  204. local Delaytxt = Instance.new("TextBox")
  205. local Delay2lab = Instance.new("TextLabel")
  206. --[[
  207. Properties:
  208. --]]
  209.  
  210. clonegui.Name = "clone"
  211. clonegui.Parent = game.Players.LocalPlayer.PlayerGui
  212. clonegui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  213.  
  214. main.Name = "main"
  215. main.Parent = clonegui
  216. main.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
  217. main.BorderSizePixel = 0
  218. main.Draggable = true
  219. main.Position = UDim2.new(0.0451713204, 0, 0.396721303, 0)
  220. main.Size = UDim2.new(0, 105, 0, 125)
  221.  
  222. ammount.Name = "ammount"
  223. ammount.Parent = main
  224. ammount.BackgroundColor3 = Color3.new(0.490196, 0.490196, 0.490196)
  225. ammount.BorderSizePixel = 0
  226. ammount.Position = UDim2.new(0.161904767, 0, 0.206270248, 0)
  227. ammount.Size = UDim2.new(0, 72, 0, 20)
  228. ammount.Font = Enum.Font.SourceSans
  229. ammount.Text = "10"
  230. ammount.TextColor3 = Color3.new(0, 0, 0)
  231. ammount.TextSize = 14
  232.  
  233. text.Name = "text"
  234. text.Parent = main
  235. text.BackgroundColor3 = Color3.new(1, 1, 1)
  236. text.BackgroundTransparency = 1
  237. text.BorderSizePixel = 0
  238. text.Position = UDim2.new(0.152380884, 0, 0.050090082, 0)
  239. text.Size = UDim2.new(0, 73, 0, 20)
  240. text.Font = Enum.Font.SourceSans
  241. text.Text = "ammount"
  242. text.TextColor3 = Color3.new(0, 0, 0)
  243. text.TextSize = 14
  244.  
  245. go.Name = "go"
  246. go.Parent = main
  247. go.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  248. go.BorderSizePixel = 0
  249. go.Position = UDim2.new(0.161904767, 0, 0.429549515, 0)
  250. go.Size = UDim2.new(0, 72, 0, 27)
  251. go.Font = Enum.Font.SourceSans
  252. go.Text = "GO!"
  253. go.TextColor3 = Color3.new(0, 0, 0)
  254. go.TextScaled = true
  255. go.TextSize = 14
  256. go.TextWrapped = true
  257.  
  258. settingsbut.Name = "settingsbut"
  259. settingsbut.Parent = main
  260. settingsbut.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  261. settingsbut.BorderSizePixel = 0
  262. settingsbut.Position = UDim2.new(0.161904767, 0, 0.70154953, 0)
  263. settingsbut.Size = UDim2.new(0, 72, 0, 27)
  264. settingsbut.Font = Enum.Font.SourceSans
  265. settingsbut.Text = "Settings"
  266. settingsbut.TextColor3 = Color3.new(0, 0, 0)
  267. settingsbut.TextScaled = true
  268. settingsbut.TextSize = 14
  269. settingsbut.TextWrapped = true
  270. settingsbut.MouseButton1Click:Connect(function()
  271. if settings_2.Visible == true then
  272. settings_2.Visible = false
  273. elseif settings_2.Visible == false then
  274. settings_2.Visible = true
  275. end
  276. end)
  277.  
  278. settings_2.Name = "settings"
  279. settings_2.Parent = clonegui
  280. settings_2.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
  281. settings_2.BorderColor3 = Color3.new(1, 1, 1)
  282. settings_2.BorderSizePixel = 0
  283. settings_2.Position = UDim2.new(0.433800638, 0, 0.249180332, 0)
  284. settings_2.Size = UDim2.new(0, 530, 0, 256)
  285. settings_2.Visible = false
  286.  
  287. sizetxt.Name = "sizetxt"
  288. sizetxt.Parent = settings_2
  289. sizetxt.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  290. sizetxt.BorderSizePixel = 0
  291. sizetxt.Position = UDim2.new(0.0171864927, 0, 0.348823607, 0)
  292. sizetxt.Size = UDim2.new(0, 126, 0, 26)
  293. sizetxt.Font = Enum.Font.SourceSans
  294. sizetxt.Text = "2,1,2"
  295. sizetxt.TextColor3 = Color3.new(0, 0, 0)
  296. sizetxt.TextScaled = true
  297. sizetxt.TextSize = 14
  298. sizetxt.TextWrapped = true
  299.  
  300. colortxt.Name = "colortxt"
  301. colortxt.Parent = settings_2
  302. colortxt.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  303. colortxt.BorderSizePixel = 0
  304. colortxt.Position = UDim2.new(0.0189499594, 0, 0.0885646939, 0)
  305. colortxt.Size = UDim2.new(0, 126, 0, 26)
  306. colortxt.Font = Enum.Font.SourceSans
  307. colortxt.Text = "85,85,85"
  308. colortxt.TextColor3 = Color3.new(0, 0, 0)
  309. colortxt.TextScaled = true
  310. colortxt.TextSize = 14
  311. colortxt.TextWrapped = true
  312.  
  313. label.Name = "label"
  314. label.Parent = settings_2
  315. label.BackgroundColor3 = Color3.new(1, 1, 1)
  316. label.BackgroundTransparency = 1
  317. label.Position = UDim2.new(0.366611928, 0, 0, 0)
  318. label.Size = UDim2.new(0, 141, 0, 23)
  319. label.Font = Enum.Font.SourceSans
  320. label.Text = "Settings"
  321. label.TextColor3 = Color3.new(0, 0, 0)
  322. label.TextSize = 25
  323.  
  324. colorlab.Name = "colorlab"
  325. colorlab.Parent = settings_2
  326. colorlab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  327. colorlab.BorderSizePixel = 0
  328. colorlab.Position = UDim2.new(0.0367547125, 0, 0.215885162, 0)
  329. colorlab.Size = UDim2.new(0, 103, 0, 15)
  330. colorlab.Font = Enum.Font.SourceSans
  331. colorlab.Text = "color"
  332. colorlab.TextColor3 = Color3.new(0, 0, 0)
  333. colorlab.TextSize = 14
  334.  
  335. Sizelab.Name = "Sizelab"
  336. Sizelab.Parent = settings_2
  337. Sizelab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  338. Sizelab.BorderSizePixel = 0
  339. Sizelab.Position = UDim2.new(0.0367547125, 0, 0.470216393, 0)
  340. Sizelab.Size = UDim2.new(0, 103, 0, 15)
  341. Sizelab.Font = Enum.Font.SourceSans
  342. Sizelab.Text = "Size"
  343. Sizelab.TextColor3 = Color3.new(0, 0, 0)
  344. Sizelab.TextSize = 14
  345.  
  346. Playerlab.Name = "Playerlab"
  347. Playerlab.Parent = settings_2
  348. Playerlab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  349. Playerlab.BorderSizePixel = 0
  350. Playerlab.Position = UDim2.new(0.0383407101, 0, 0.715437651, 0)
  351. Playerlab.Size = UDim2.new(0, 103, 0, 15)
  352. Playerlab.Font = Enum.Font.SourceSans
  353. Playerlab.Text = "Player"
  354. Playerlab.TextColor3 = Color3.new(0, 0, 0)
  355. Playerlab.TextSize = 14
  356.  
  357. Playertxt.Name = "Playertxt"
  358. Playertxt.Parent = settings_2
  359. Playertxt.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  360. Playertxt.BorderSizePixel = 0
  361. Playertxt.Position = UDim2.new(0.0171864927, 0, 0.591011107, 0)
  362. Playertxt.Size = UDim2.new(0, 126, 0, 26)
  363. Playertxt.Font = Enum.Font.SourceSans
  364. Playertxt.Text = "me"
  365. Playertxt.TextColor3 = Color3.new(0, 0, 0)
  366. Playertxt.TextScaled = true
  367. Playertxt.TextSize = 14
  368. Playertxt.TextWrapped = true
  369.  
  370. transtxt.Name = "transtxt"
  371. transtxt.Parent = settings_2
  372. transtxt.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  373. transtxt.BorderSizePixel = 0
  374. transtxt.Position = UDim2.new(0.366119772, 0, 0.0885646939, 0)
  375. transtxt.Size = UDim2.new(0, 126, 0, 26)
  376. transtxt.Font = Enum.Font.SourceSans
  377. transtxt.Text = "0"
  378. transtxt.TextColor3 = Color3.new(0, 0, 0)
  379. transtxt.TextScaled = true
  380. transtxt.TextSize = 14
  381. transtxt.TextWrapped = true
  382.  
  383. Translab.Name = "Translab"
  384. Translab.Parent = settings_2
  385. Translab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  386. Translab.BorderSizePixel = 0
  387. Translab.Position = UDim2.new(0.387698114, 0, 0.215885162, 0)
  388. Translab.Size = UDim2.new(0, 103, 0, 15)
  389. Translab.Font = Enum.Font.SourceSans
  390. Translab.Text = "Transparency"
  391. Translab.TextColor3 = Color3.new(0, 0, 0)
  392. Translab.TextSize = 14
  393.  
  394. Colidetgl.Name = "Colidetgl"
  395. Colidetgl.Parent = settings_2
  396. Colidetgl.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  397. Colidetgl.BorderSizePixel = 0
  398. Colidetgl.Position = UDim2.new(0.366037726, 0, 0.36328125, 0)
  399. Colidetgl.Size = UDim2.new(0, 126, 0, 26)
  400. Colidetgl.Font = Enum.Font.SourceSans
  401. Colidetgl.Text = "Toggle"
  402. Colidetgl.TextColor3 = Color3.new(0, 0, 0)
  403. Colidetgl.TextScaled = true
  404. Colidetgl.TextSize = 14
  405. Colidetgl.TextWrapped = true
  406.  
  407. colidelab.Name = "colidelab"
  408. colidelab.Parent = settings_2
  409. colidelab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  410. colidelab.BorderSizePixel = 0
  411. colidelab.Position = UDim2.new(0.387698114, 0, 0.501041412, 0)
  412. colidelab.Size = UDim2.new(0, 103, 0, 15)
  413. colidelab.Font = Enum.Font.SourceSans
  414. colidelab.Text = "Collide on"
  415. colidelab.TextColor3 = Color3.new(0, 0, 0)
  416. colidelab.TextSize = 14
  417.  
  418. Delaylab.Name = "Delaylab"
  419. Delaylab.Parent = settings_2
  420. Delaylab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  421. Delaylab.BorderSizePixel = 0
  422. Delaylab.Position = UDim2.new(0.385811329, 0, 0.727603912, 0)
  423. Delaylab.Size = UDim2.new(0, 103, 0, 15)
  424. Delaylab.Font = Enum.Font.SourceSans
  425. Delaylab.Text = "Dellay off"
  426. Delaylab.TextColor3 = Color3.new(0, 0, 0)
  427. Delaylab.TextSize = 14
  428.  
  429. Delaytgl.Name = "Delaytgl"
  430. Delaytgl.Parent = settings_2
  431. Delaytgl.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  432. Delaytgl.BorderSizePixel = 0
  433. Delaytgl.Position = UDim2.new(0.364150941, 0, 0.58984375, 0)
  434. Delaytgl.Size = UDim2.new(0, 126, 0, 26)
  435. Delaytgl.Font = Enum.Font.SourceSans
  436. Delaytgl.Text = "Toggle"
  437. Delaytgl.TextColor3 = Color3.new(0, 0, 0)
  438. Delaytgl.TextScaled = true
  439. Delaytgl.TextSize = 14
  440. Delaytgl.TextWrapped = true
  441.  
  442. Anchorlab.Name = "Anchorlab"
  443. Anchorlab.Parent = settings_2
  444. Anchorlab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  445. Anchorlab.BorderSizePixel = 0
  446. Anchorlab.Position = UDim2.new(0.714113235, 0, 0.727603912, 0)
  447. Anchorlab.Size = UDim2.new(0, 103, 0, 15)
  448. Anchorlab.Font = Enum.Font.SourceSans
  449. Anchorlab.Text = "Anchor off"
  450. Anchorlab.TextColor3 = Color3.new(0, 0, 0)
  451. Anchorlab.TextSize = 14
  452.  
  453. Anchortgl.Name = "Anchortgl"
  454. Anchortgl.Parent = settings_2
  455. Anchortgl.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  456. Anchortgl.BorderSizePixel = 0
  457. Anchortgl.Position = UDim2.new(0.692452788, 0, 0.58984375, 0)
  458. Anchortgl.Size = UDim2.new(0, 126, 0, 26)
  459. Anchortgl.Font = Enum.Font.SourceSans
  460. Anchortgl.Text = "Toggle"
  461. Anchortgl.TextColor3 = Color3.new(0, 0, 0)
  462. Anchortgl.TextScaled = true
  463. Anchortgl.TextSize = 14
  464. Anchortgl.TextWrapped = true
  465.  
  466.  
  467. Delaytxt.Name = "Delaytxt"
  468. Delaytxt.Parent = settings_2
  469. Delaytxt.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  470. Delaytxt.BorderSizePixel = 0
  471. Delaytxt.Position = UDim2.new(0.691, 0,0.089, 0)
  472. Delaytxt.Size = UDim2.new(0, 126, 0, 26)
  473. Delaytxt.Font = Enum.Font.SourceSans
  474. Delaytxt.Text = "1"
  475. Delaytxt.TextColor3 = Color3.new(0, 0, 0)
  476. Delaytxt.TextScaled = true
  477. Delaytxt.TextSize = 14
  478. Delaytxt.TextWrapped = true
  479.  
  480. Delay2lab.Name = "Delay2lab"
  481. Delay2lab.Parent = settings_2
  482. Delay2lab.BackgroundColor3 = Color3.new(0.494118, 0.494118, 0.494118)
  483. Delay2lab.BorderSizePixel = 0
  484. Delay2lab.Position = UDim2.new(0.712, 0,0.216, 0)
  485. Delay2lab.Size = UDim2.new(0, 103,0, 15)
  486. Delay2lab.Text = "Delay time"
  487. Delay2lab.TextColor3 = Color3.new(0, 0, 0)
  488. Delay2lab.TextScaled = true
  489. Delay2lab.TextSize = 14
  490. Delay2lab.TextWrapped = true
  491.  
  492.  
  493. onoff_1.Name = "on/off"
  494. onoff_1.Parent = Anchortgl
  495. onoff_1.Value = false
  496.  
  497. onoff_2.Name = "on/off"
  498. onoff_2.Parent = Colidetgl
  499. onoff_2.Value = true
  500.  
  501. onoff_3.Name = "on/off"
  502. onoff_3.Parent = Delaytgl
  503. onoff_3.Value = false
  504.  
  505. --scripts
  506. local config = settings_2
  507. local char = game.Players.LocalPlayer.Character
  508. local hat = char:FindFirstChildOfClass("Accessory")
  509. local collide = true
  510. local Dellay = false
  511. local Anchor = false
  512.  
  513.  
  514.  
  515. Colidetgl.MouseButton1Click:Connect(function()
  516. if onoff_2.Value == true then
  517. colidelab.Text = "Collide off"
  518. collide = false
  519. onoff_2.Value = false
  520. elseif onoff_2.Value == false then
  521. colidelab.Text = "Collide on"
  522. collide = true
  523. onoff_2.Value = true
  524.  
  525. end
  526. end)
  527. Delaytgl.MouseButton1Click:Connect(function()
  528. if onoff_3.Value == true then
  529. Delaylab.Text = "Dellay off"
  530. Dellay = false
  531. onoff_3.Value = false
  532. elseif onoff_3.Value == false then
  533. Delaylab.Text = "Dellay on"
  534. Dellay = true
  535. onoff_3.Value = true
  536.  
  537. end
  538. end)
  539. config.Anchortgl.MouseButton1Click:Connect(function()
  540. if onoff_1.Value == true then
  541. Anchorlab.Text = "Anchor off"
  542. Anchor = false
  543. onoff_1.Value = false
  544. elseif onoff_1.Value == false then
  545. Anchorlab.Text = "Anchor on"
  546. Anchor = true
  547. onoff_1.Value = true
  548.  
  549. end
  550. end)
  551.  
  552.  
  553.  
  554. go.MouseButton1Click:Connect(function()
  555. local Player = config.Playertxt
  556. local actPlayer = nil
  557. if Player.Text == "me" then
  558. actPlayer = char.Name
  559. else
  560. actPlayer = Player.Text
  561. end
  562. local rgb = string.split(config.colortxt.Text, ",")
  563. local red = tonumber(rgb[1])
  564. local green = tonumber(rgb[2])
  565. local blue = tonumber(rgb[3])
  566. local xyz = string.split(config.sizetxt.Text, ",")
  567. local X = tonumber(xyz[1])
  568. local Y = tonumber(xyz[2])
  569. local Z = tonumber(xyz[3])
  570. local cloning = 0
  571.  
  572. for cloning = 1, ammount.Text do
  573. if Dellay == true then
  574. wait(Delaytxt.Text / 10)
  575. end
  576. local transparency = (config.transtxt.Text / 100)
  577. local color = Color3.new(red,green,blue)
  578. local size = Vector3.new(X,Y,Z)
  579. local pos = game.Players[actPlayer].Character.Head.CFrame
  580. local info = {transparency , color, size, collide, Anchor, pos}
  581. game.ReplicatedStorage.SpawnBrick:FireServer(unpack(info))
  582.  
  583. end
  584. end)
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593. local UserInputService = game:GetService("UserInputService")
  594.  
  595. local gui = settings_2
  596.  
  597. local dragging
  598. local dragInput
  599. local dragStart
  600. local startPos
  601.  
  602. local function update(input)
  603. local delta = input.Position - dragStart
  604. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  605. end
  606.  
  607. gui.InputBegan:Connect(function(input)
  608. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  609. dragging = true
  610. dragStart = input.Position
  611. startPos = gui.Position
  612.  
  613. input.Changed:Connect(function()
  614. if input.UserInputState == Enum.UserInputState.End then
  615. dragging = false
  616. end
  617. end)
  618. end
  619. end)
  620.  
  621. gui.InputChanged:Connect(function(input)
  622. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  623. dragInput = input
  624. end
  625. end)
  626.  
  627. UserInputService.InputChanged:Connect(function(input)
  628. if input == dragInput and dragging then
  629. update(input)
  630. end
  631. end)
  632.  
  633.  
  634. local UserInputService = game:GetService("UserInputService")
  635.  
  636. local gui = main
  637.  
  638. local dragging
  639. local dragInput
  640. local dragStart
  641. local startPos
  642.  
  643. local function update(input)
  644. local delta = input.Position - dragStart
  645. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  646. end
  647.  
  648. gui.InputBegan:Connect(function(input)
  649. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  650. dragging = true
  651. dragStart = input.Position
  652. startPos = gui.Position
  653.  
  654. input.Changed:Connect(function()
  655. if input.UserInputState == Enum.UserInputState.End then
  656. dragging = false
  657. end
  658. end)
  659. end
  660. end)
  661.  
  662. gui.InputChanged:Connect(function(input)
  663. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  664. dragInput = input
  665. end
  666. end)
  667.  
  668. UserInputService.InputChanged:Connect(function(input)
  669. if input == dragInput and dragging then
  670. update(input)
  671. end
  672. end)
  673.  
  674. local event = game.ReplicatedStorage.SpawnBrick
  675.  
  676.  
  677. event.OnServerEvent:Connect(function(Player,Transparency,Color,Size,CanCollide,Anchored,position)
  678. local clone = Instance.new("Part",workspace)
  679. clone.Transparency = Transparency
  680. clone.Color = Color
  681. clone.Size = Size
  682. clone.CanCollide = CanCollide
  683. clone.Anchored = Anchored
  684. clone.CFrame = position
  685. if Anchored == true then
  686. clone.CanCollide = false
  687. wait(0.4)
  688. clone.CanCollide = CanCollide
  689. end
  690.  
  691. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement