victordavid091

LT2 So OP GUI Can WALL HACK

Feb 7th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.47 KB | None | 0 0
  1. --GUI Made By: Script Hunter - Anwarun
  2.  
  3. Mouse = game.Players.LocalPlayer:GetMouse()
  4.  
  5. Client = game.ReplicatedStorage.Interaction.ClientSetListPlayer
  6. players = game.Players
  7. for i, v in pairs(players:GetPlayers()) do
  8. if v.Name ~= players.LocalPlayer.Name then
  9. Client:InvokeServer(players.LocalPlayer.BlacklistFolder, v, true)
  10. end
  11. end
  12. players.PlayerAdded:connect(function(plr)
  13. Client:InvokeServer(players.LocalPlayer.BlacklistFolder, plr, true)
  14. end)
  15.  
  16. -- Objects
  17.  
  18. local plr = game:GetService('Players').LocalPlayer.Character
  19. local Lt2 = Instance.new("ScreenGui")
  20. local Frame = Instance.new("Frame")
  21. local Title = Instance.new("TextLabel")
  22. local Walk = Instance.new("TextButton")
  23. local Dupe = Instance.new("TextButton")
  24. local Tpwood = Instance.new("TextButton")
  25. local GoldAxe = Instance.new("TextButton")
  26. local Jump = Instance.new("TextButton")
  27. local WallHax = Instance.new("TextButton")
  28. local Teleportt = Instance.new("TextButton")
  29. local Wnum = Instance.new("TextBox")
  30. local Jnum = Instance.new("TextBox")
  31. local Tpframe = Instance.new("Frame")
  32. local Tittle = Instance.new("TextLabel")
  33. local LolF = Instance.new("ScrollingFrame")
  34. local plot = Instance.new("TextButton")
  35. local woodrus = Instance.new("TextButton")
  36. local spawn = Instance.new("TextButton")
  37. local volcano = Instance.new("TextButton")
  38. local swamp = Instance.new("TextButton")
  39. local palm = Instance.new("TextButton")
  40. local cave = Instance.new("TextButton")
  41. local cars = Instance.new("TextButton")
  42. local strangemen = Instance.new("TextButton")
  43. local theden = Instance.new("TextButton")
  44. local Color = Instance.new("Frame")
  45. local titttle = Instance.new("TextLabel")
  46. local Grey = Instance.new("TextButton")
  47. local Phantom = Instance.new("TextButton")
  48. local Spooky = Instance.new("TextButton")
  49. local Blue = Instance.new("TextButton")
  50. local LightSpooky = Instance.new("TextButton")
  51. local X = Instance.new("TextButton")
  52.  
  53. -- Properties
  54.  
  55. Lt2.Name = "Lt2"
  56. Lt2.Parent = game.CoreGui
  57. Lt2.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  58.  
  59. Frame.Parent = Lt2
  60. Frame.Active = true
  61. Frame.Draggable = true
  62. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  63. Frame.BackgroundTransparency = 0.10000000149012
  64. Frame.Position = UDim2.new(0.225425944, 0, 0.291505814, 0)
  65. Frame.Size = UDim2.new(0, 419, 0, 216)
  66.  
  67. Title.Name = "Title"
  68. Title.Parent = Frame
  69. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  70. Title.BorderColor3 = Color3.new(1, 1, 1)
  71. Title.BorderSizePixel = 2
  72. Title.Size = UDim2.new(0, 419, 0, 23)
  73. Title.Font = Enum.Font.GothamBold
  74. Title.Text = "Lt2 Gui"
  75. Title.TextColor3 = Color3.new(0, 0, 0)
  76. Title.TextSize = 20
  77.  
  78. Walk.Name = "Walk"
  79. Walk.Parent = Frame
  80. Walk.BackgroundColor3 = Color3.new(1, 1, 1)
  81. Walk.Position = UDim2.new(0.0238663331, 0, 0.833333373, 0)
  82. Walk.Size = UDim2.new(0, 154, 0, 28)
  83. Walk.Font = Enum.Font.GothamBold
  84. Walk.Text = "Walk Speed"
  85. Walk.TextColor3 = Color3.new(0, 0, 0)
  86. Walk.TextSize = 20
  87.  
  88. Dupe.Name = "Dupe"
  89. Dupe.Parent = Frame
  90. Dupe.BackgroundColor3 = Color3.new(1, 1, 1)
  91. Dupe.Position = UDim2.new(0.050119333, 0, 0.152777776, 0)
  92. Dupe.Size = UDim2.new(0, 375, 0, 26)
  93. Dupe.Font = Enum.Font.GothamBold
  94. Dupe.Text = "Dupe"
  95. Dupe.TextColor3 = Color3.new(0, 0, 0)
  96. Dupe.TextSize = 20
  97.  
  98. Tpwood.Name = "Tpwood"
  99. Tpwood.Parent = Frame
  100. Tpwood.BackgroundColor3 = Color3.new(1, 1, 1)
  101. Tpwood.Position = UDim2.new(0.050119333, 0, 0.310185194, 0)
  102. Tpwood.Size = UDim2.new(0, 176, 0, 28)
  103. Tpwood.Font = Enum.Font.GothamBold
  104. Tpwood.Text = "Bring Wood"
  105. Tpwood.TextColor3 = Color3.new(0, 0, 0)
  106. Tpwood.TextSize = 20
  107.  
  108. GoldAxe.Name = "GoldAxe"
  109. GoldAxe.Parent = Frame
  110. GoldAxe.BackgroundColor3 = Color3.new(1, 1, 1)
  111. GoldAxe.Position = UDim2.new(0.52505964, 0, 0.310185194, 0)
  112. GoldAxe.Size = UDim2.new(0, 176, 0, 28)
  113. GoldAxe.Font = Enum.Font.GothamBold
  114. GoldAxe.Text = "Gold Axe"
  115. GoldAxe.TextColor3 = Color3.new(0, 0, 0)
  116. GoldAxe.TextSize = 20
  117.  
  118. Jump.Name = "Jump"
  119. Jump.Parent = Frame
  120. Jump.BackgroundColor3 = Color3.new(1, 1, 1)
  121. Jump.Position = UDim2.new(0.613365114, 0, 0.833333373, 0)
  122. Jump.Size = UDim2.new(0, 154, 0, 28)
  123. Jump.Font = Enum.Font.GothamBold
  124. Jump.Text = "Jump Hack"
  125. Jump.TextColor3 = Color3.new(0, 0, 0)
  126. Jump.TextSize = 20
  127.  
  128. WallHax.Name = "WallHax"
  129. WallHax.Parent = Frame
  130. WallHax.BackgroundColor3 = Color3.new(1, 1, 1)
  131. WallHax.Position = UDim2.new(0.52505964, 0, 0.490740746, 0)
  132. WallHax.Size = UDim2.new(0, 176, 0, 28)
  133. WallHax.Font = Enum.Font.GothamBold
  134. WallHax.Text = "Wall Color Hack"
  135. WallHax.TextColor3 = Color3.new(0, 0, 0)
  136. WallHax.TextSize = 20
  137.  
  138. Teleportt.Name = "Teleportt"
  139. Teleportt.Parent = Frame
  140. Teleportt.BackgroundColor3 = Color3.new(1, 1, 1)
  141. Teleportt.Position = UDim2.new(0.0501193106, 0, 0.490740746, 0)
  142. Teleportt.Size = UDim2.new(0, 176, 0, 28)
  143. Teleportt.Font = Enum.Font.GothamBold
  144. Teleportt.Text = "Teleport"
  145. Teleportt.TextColor3 = Color3.new(0, 0, 0)
  146. Teleportt.TextSize = 20
  147.  
  148. Wnum.Name = "Wnum"
  149. Wnum.Parent = Frame
  150. Wnum.BackgroundColor3 = Color3.new(1, 1, 1)
  151. Wnum.Position = UDim2.new(0.0548925996, 0, 0.703703701, 0)
  152. Wnum.Size = UDim2.new(0, 128, 0, 22)
  153. Wnum.Font = Enum.Font.GothamBold
  154. Wnum.Text = "15"
  155. Wnum.TextColor3 = Color3.new(0, 0, 0)
  156. Wnum.TextSize = 20
  157.  
  158. Jnum.Name = "Jnum"
  159. Jnum.Parent = Frame
  160. Jnum.BackgroundColor3 = Color3.new(1, 1, 1)
  161. Jnum.Position = UDim2.new(0.644391418, 0, 0.703703701, 0)
  162. Jnum.Size = UDim2.new(0, 128, 0, 22)
  163. Jnum.Font = Enum.Font.GothamBold
  164. Jnum.Text = "50"
  165. Jnum.TextColor3 = Color3.new(0, 0, 0)
  166. Jnum.TextSize = 20
  167.  
  168. Tpframe.Name = "Tpframe"
  169. Tpframe.Parent = Frame
  170. Tpframe.Visible = false
  171. Tpframe.BackgroundColor3 = Color3.new(1, 1, 1)
  172. Tpframe.BorderColor3 = Color3.new(1, 1, 1)
  173. Tpframe.BorderSizePixel = 2
  174. Tpframe.Position = UDim2.new(-0.279236287, 0, 0, 0)
  175. Tpframe.Size = UDim2.new(0, 108, 0, 216)
  176.  
  177. Tittle.Name = "Tittle"
  178. Tittle.Parent = Tpframe
  179. Tittle.BackgroundColor3 = Color3.new(1, 1, 1)
  180. Tittle.BorderSizePixel = 2
  181. Tittle.Position = UDim2.new(7.06425425e-08, 0, 0, 0)
  182. Tittle.Size = UDim2.new(0, 108, 0, 23)
  183. Tittle.Font = Enum.Font.GothamBold
  184. Tittle.Text = "Teleport"
  185. Tittle.TextColor3 = Color3.new(0, 0, 0)
  186. Tittle.TextSize = 20
  187.  
  188. LolF.Name = "LolF"
  189. LolF.Parent = Tpframe
  190. LolF.BackgroundColor3 = Color3.new(0, 0, 0)
  191. LolF.BorderSizePixel = 0
  192. LolF.Position = UDim2.new(0, 0, 0.106481485, 0)
  193. LolF.Size = UDim2.new(0, 108, 0, 193)
  194.  
  195. plot.Name = "plot"
  196. plot.Parent = LolF
  197. plot.BackgroundColor3 = Color3.new(1, 1, 1)
  198. plot.Position = UDim2.new(0.0648148805, 0, 0.0279903859, 0)
  199. plot.Size = UDim2.new(0, 81, 0, 23)
  200. plot.Font = Enum.Font.GothamBold
  201. plot.Text = "You Base"
  202. plot.TextColor3 = Color3.new(0, 0, 0)
  203. plot.TextSize = 14
  204.  
  205. woodrus.Name = "woodrus"
  206. woodrus.Parent = LolF
  207. woodrus.BackgroundColor3 = Color3.new(1, 1, 1)
  208. woodrus.Position = UDim2.new(0.0648148805, 0, 0.0997496471, 0)
  209. woodrus.Size = UDim2.new(0, 81, 0, 23)
  210. woodrus.Font = Enum.Font.GothamBold
  211. woodrus.Text = "WoodRus"
  212. woodrus.TextColor3 = Color3.new(0, 0, 0)
  213. woodrus.TextSize = 14
  214.  
  215. spawn.Name = "spawn"
  216. spawn.Parent = LolF
  217. spawn.BackgroundColor3 = Color3.new(1, 1, 1)
  218. spawn.Position = UDim2.new(0.0648148805, 0, 0.169194102, 0)
  219. spawn.Size = UDim2.new(0, 81, 0, 23)
  220. spawn.Font = Enum.Font.GothamBold
  221. spawn.Text = "Spawn"
  222. spawn.TextColor3 = Color3.new(0, 0, 0)
  223. spawn.TextSize = 14
  224.  
  225. volcano.Name = "volcano"
  226. volcano.Parent = LolF
  227. volcano.BackgroundColor3 = Color3.new(1, 1, 1)
  228. volcano.Position = UDim2.new(0.0648148805, 0, 0.243268177, 0)
  229. volcano.Size = UDim2.new(0, 81, 0, 23)
  230. volcano.Font = Enum.Font.GothamBold
  231. volcano.Text = "Volcano"
  232. volcano.TextColor3 = Color3.new(0, 0, 0)
  233. volcano.TextSize = 14
  234.  
  235. swamp.Name = "swamp"
  236. swamp.Parent = LolF
  237. swamp.BackgroundColor3 = Color3.new(1, 1, 1)
  238. swamp.Position = UDim2.new(0.0648148805, 0, 0.308082998, 0)
  239. swamp.Size = UDim2.new(0, 81, 0, 23)
  240. swamp.Font = Enum.Font.GothamBold
  241. swamp.Text = "Swamp"
  242. swamp.TextColor3 = Color3.new(0, 0, 0)
  243. swamp.TextSize = 14
  244.  
  245. palm.Name = "palm"
  246. palm.Parent = LolF
  247. palm.BackgroundColor3 = Color3.new(1, 1, 1)
  248. palm.Position = UDim2.new(0.0648148805, 0, 0.372897804, 0)
  249. palm.Size = UDim2.new(0, 81, 0, 23)
  250. palm.Font = Enum.Font.GothamBold
  251. palm.Text = "Palm"
  252. palm.TextColor3 = Color3.new(0, 0, 0)
  253. palm.TextSize = 14
  254.  
  255. cave.Name = "cave"
  256. cave.Parent = LolF
  257. cave.BackgroundColor3 = Color3.new(1, 1, 1)
  258. cave.Position = UDim2.new(0.0648148805, 0, 0.444657058, 0)
  259. cave.Size = UDim2.new(0, 81, 0, 23)
  260. cave.Font = Enum.Font.GothamBold
  261. cave.Text = "Cave"
  262. cave.TextColor3 = Color3.new(0, 0, 0)
  263. cave.TextSize = 14
  264.  
  265. cars.Name = "cars"
  266. cars.Parent = LolF
  267. cars.BackgroundColor3 = Color3.new(1, 1, 1)
  268. cars.Position = UDim2.new(0.0648148805, 0, 0.514101505, 0)
  269. cars.Size = UDim2.new(0, 81, 0, 23)
  270. cars.Font = Enum.Font.GothamBold
  271. cars.Text = "Boxed Cars"
  272. cars.TextColor3 = Color3.new(0, 0, 0)
  273. cars.TextSize = 14
  274.  
  275. strangemen.Name = "strangemen"
  276. strangemen.Parent = LolF
  277. strangemen.BackgroundColor3 = Color3.new(1, 1, 1)
  278. strangemen.Position = UDim2.new(0.0648148805, 0, 0.583545923, 0)
  279. strangemen.Size = UDim2.new(0, 81, 0, 23)
  280. strangemen.Font = Enum.Font.GothamBold
  281. strangemen.Text = "Strange Man"
  282. strangemen.TextColor3 = Color3.new(0, 0, 0)
  283. strangemen.TextSize = 14
  284.  
  285. theden.Name = "theden"
  286. theden.Parent = LolF
  287. theden.BackgroundColor3 = Color3.new(1, 1, 1)
  288. theden.Position = UDim2.new(0.0648148805, 0, 0.650675535, 0)
  289. theden.Size = UDim2.new(0, 81, 0, 23)
  290. theden.Font = Enum.Font.GothamBold
  291. theden.Text = "The Den"
  292. theden.TextColor3 = Color3.new(0, 0, 0)
  293. theden.TextSize = 14
  294. function Create(cls,props)
  295. local inst = Instance.new(cls)
  296. for i,v in pairs(props) do
  297. inst[i] = v
  298. end
  299. return inst
  300. end
  301. Color.Name = "Color"
  302. Color.Visible = false
  303. Color.Parent = Frame
  304. Color.BackgroundColor3 = Color3.new(1, 1, 1)
  305. Color.BorderColor3 = Color3.new(1, 1, 1)
  306. Color.BorderSizePixel = 2
  307. Color.Position = UDim2.new(1.02625299, 0, 0, 0)
  308. Color.Size = UDim2.new(0, 103, 0, 216)
  309.  
  310. titttle.Name = "titttle"
  311. titttle.Parent = Color
  312. titttle.BackgroundColor3 = Color3.new(1, 1, 1)
  313. titttle.BorderSizePixel = 2
  314. titttle.Size = UDim2.new(0, 103, 0, 23)
  315. titttle.Font = Enum.Font.GothamBold
  316. titttle.Text = "Color Hax"
  317. titttle.TextColor3 = Color3.new(0, 0, 0)
  318. titttle.TextSize = 14
  319. local service = setmetatable({}, {
  320. __index = function(t, k)
  321. return game:GetService(k)
  322. end
  323. })
  324. Grey.Name = "Grey"
  325. Grey.Parent = Color
  326. Grey.BackgroundColor3 = Color3.new(1, 1, 1)
  327. Grey.BorderColor3 = Color3.new(0, 0, 0)
  328. Grey.BorderSizePixel = 2
  329. Grey.Position = UDim2.new(0.0679611638, 0, 0.152777776, 0)
  330. Grey.Size = UDim2.new(0, 89, 0, 26)
  331. Grey.Font = Enum.Font.GothamBold
  332. Grey.Text = "Grey"
  333. Grey.TextColor3 = Color3.new(0, 0, 0)
  334. Grey.TextSize = 20
  335.  
  336. Phantom.Name = "Phantom"
  337. Phantom.Parent = Color
  338. Phantom.BackgroundColor3 = Color3.new(1, 1, 1)
  339. Phantom.BorderColor3 = Color3.new(0, 0, 0)
  340. Phantom.BorderSizePixel = 2
  341. Phantom.Position = UDim2.new(0.0679611638, 0, 0.319444448, 0)
  342. Phantom.Size = UDim2.new(0, 89, 0, 26)
  343. Phantom.Font = Enum.Font.GothamBold
  344. Phantom.Text = "Phantom"
  345. Phantom.TextColor3 = Color3.new(0, 0, 0)
  346. Phantom.TextSize = 20
  347.  
  348. Spooky.Name = "Spooky"
  349. Spooky.Parent = Color
  350. Spooky.BackgroundColor3 = Color3.new(1, 1, 1)
  351. Spooky.BorderColor3 = Color3.new(0, 0, 0)
  352. Spooky.BorderSizePixel = 2
  353. Spooky.Position = UDim2.new(0.0679611638, 0, 0.490740746, 0)
  354. Spooky.Size = UDim2.new(0, 89, 0, 26)
  355. Spooky.Font = Enum.Font.GothamBold
  356. Spooky.Text = "Spooky"
  357. Spooky.TextColor3 = Color3.new(0, 0, 0)
  358. Spooky.TextSize = 20
  359.  
  360. Blue.Name = "Blue"
  361. Blue.Parent = Color
  362. Blue.BackgroundColor3 = Color3.new(1, 1, 1)
  363. Blue.BorderColor3 = Color3.new(0, 0, 0)
  364. Blue.BorderSizePixel = 2
  365. Blue.Position = UDim2.new(0.0679611638, 0, 0.652777791, 0)
  366. Blue.Size = UDim2.new(0, 89, 0, 26)
  367. Blue.Font = Enum.Font.GothamBold
  368. Blue.Text = "Blue"
  369. Blue.TextColor3 = Color3.new(0, 0, 0)
  370. Blue.TextSize = 20
  371.  
  372. LightSpooky.Name = "LightSpooky"
  373. LightSpooky.Parent = Color
  374. LightSpooky.BackgroundColor3 = Color3.new(1, 1, 1)
  375. LightSpooky.BorderColor3 = Color3.new(0, 0, 0)
  376. LightSpooky.BorderSizePixel = 2
  377. LightSpooky.Position = UDim2.new(0.0679611638, 0, 0.828703701, 0)
  378. LightSpooky.Size = UDim2.new(0, 89, 0, 26)
  379. LightSpooky.Font = Enum.Font.GothamBold
  380. LightSpooky.Text = "L Spooky"
  381. LightSpooky.TextColor3 = Color3.new(0, 0, 0)
  382. LightSpooky.TextSize = 20
  383.  
  384. X.Name = "X"
  385. X.Parent = Frame
  386. X.BackgroundColor3 = Color3.new(1, 0, 0)
  387. X.BorderColor3 = Color3.new(1, 0, 0)
  388. X.Position = UDim2.new(0.930787563, 0, -0.00925925933, 0)
  389. X.Size = UDim2.new(0, 29, 0, 26)
  390. X.Font = Enum.Font.GothamBold
  391. X.Text = "X"
  392. X.TextColor3 = Color3.new(1, 1, 1)
  393. X.TextSize = 20
  394.  
  395. --U Is Gay
  396.  
  397. Walk.MouseButton1Click:connect(function()
  398. while wait() do
  399. plr.Humanoid.WalkSpeed = Wnum.Text
  400. end
  401. end)
  402.  
  403. Jump.MouseButton1Click:connect(function()
  404. while wait() do
  405. plr.Humanoid.JumpPower = Jnum.Text
  406. end
  407. end)
  408.  
  409. X.MouseButton1Click:connect(function()
  410. Lt2:Destroy()
  411. end)
  412.  
  413. Tpwood.MouseButton1Click:connect(function()
  414. for _, Log in pairs(service.Workspace.LogModels:GetChildren()) do
  415. if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
  416. if Log.Owner.Value == service.Players.LocalPlayer then
  417. Log:MoveTo(service.Players.LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0, 20, 0))
  418. for i=1,100 do
  419. service.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log)
  420. end
  421. end
  422. end
  423. end
  424. end)
  425.  
  426. buka = false
  427. WallHax.MouseButton1Click:connect(function()
  428. if buka == true then
  429. buka = false
  430. Color.Visible = false
  431. else
  432. buka = true
  433. Color.Visible = true
  434. end
  435. end)
  436.  
  437. buka1 = false
  438. Teleportt.MouseButton1Click:connect(function()
  439. if buka1 == true then
  440. buka1 = false
  441. Tpframe.Visible = false
  442. else
  443. buka1 = true
  444. Tpframe.Visible = true
  445. end
  446. end)
  447.  
  448. Duping = false
  449. Dupe.MouseButton1Click:connect(function()
  450. local slott = game:GetService('Players').LocalPlayer.CurrentSaveSlot
  451. if Duping == true then
  452. slott.RobloxLocked = false
  453. Duping = false
  454. Dupe.BackgroundColor3 = Color3.new(255, 255, 255)
  455. else
  456. Duping = true
  457. if slott.Value == -1 then
  458. slott.RobloxLocked = true
  459. Dupe.BackgroundColor3 = Color3.new(0, 255, 0)
  460. end
  461. end
  462. end)
  463.  
  464. plot.MouseButton1Click:connect(function()
  465. local bch = game:GetService('Players').LocalPlayer
  466. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  467. if v.Owner.Value == bch then
  468. plr.HumanoidRootPart.CFrame = v.OriginSquare.CFrame + Vector3.new(0,10,0)
  469. end
  470. end
  471. end)
  472.  
  473. woodrus.MouseButton1Click:connect(function()
  474. plr.HumanoidRootPart.CFrame = CFrame.new(265, 5, 57)
  475. end)
  476.  
  477. spawn.MouseButton1Click:connect(function()
  478. plr.HumanoidRootPart.CFrame = CFrame.new(155, 5, 74)
  479. end)
  480.  
  481. local tp = plr.HumanoidRootPart
  482.  
  483. volcano.MouseButton1Click:connect(function()
  484. tp.CFrame = CFrame.new(-1585, 625, 1140)
  485. end)
  486.  
  487. palm.MouseButton1Click:connect(function()
  488. tp.CFrame = CFrame.new(2549, 5, -42)
  489. end)
  490.  
  491. cars.MouseButton1Click:connect(function()
  492. tp.CFrame = CFrame.new(509, 5.2, -1463)
  493. end)
  494.  
  495. cave.MouseButton1Click:connect(function()
  496. tp.CFrame = CFrame.new(3581, -177, 430)
  497. end)
  498.  
  499. swamp.MouseButton1Click:connect(function()
  500. tp.CFrame = CFrame.new(-1209, 138, -801)
  501. end)
  502.  
  503. strangemen.MouseButton1Click:connect(function()
  504. tp.CFrame = CFrame.new(1061, 20, 1131)
  505. end)
  506.  
  507. theden.MouseButton1Click:connect(function()
  508. tp.CFrame = CFrame.new(323, 49, 1930)
  509. end)
  510.  
  511. -- ColorHax Script
  512.  
  513. woodtype = "Birch"
  514.  
  515. local tool = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
  516. tool.RequiresHandle = false
  517. --tool.RobloxLocked = true
  518. tool.Name = "Paint"
  519. tool.ToolTip = "Changes A Stucture's Wood Type"
  520. tool.Equipped:connect(function(Mouse)
  521. Mouse.Button1Down:connect(function()
  522. if Mouse.Target.Parent:FindFirstChild("Type") or Mouse.Target.Parent:FindFirstChild("BlueprintWoodClass") then
  523. local Cframe
  524. if Mouse.Target.Parent:FindFirstChild("MainCFrame") then
  525. Cframe = Mouse.Target.Parent.MainCFrame.Value
  526. else
  527. Cframe = Mouse.Target.Parent.PrimaryPart.CFrame
  528. end
  529. if Mouse.Target.Parent ~= nil then
  530. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(Mouse.Target.Parent.ItemName.Value, Cframe, game.Players.LocalPlayer, woodtype, Mouse.Target.Parent, false)
  531. end
  532. else
  533. --do nothing
  534. end
  535. end)
  536. end)
  537.  
  538. g1 = false
  539. g2 = false
  540. g3 = false
  541. g4 = false
  542. g5 = false
  543.  
  544. Grey.MouseButton1Click:connect(function()
  545. if g1 == true then
  546. g1 = false
  547. Grey.BackgroundColor3 = Color3.new(255, 255, 255)
  548. else
  549. g1 = true
  550. Grey.BackgroundColor3 = Color3.new(0, 255, 0)
  551. if g1 then
  552. woodtype = nil
  553. end
  554. end
  555. end)
  556.  
  557. Spooky.MouseButton1Click:connect(function()
  558. if g2 == true then
  559. g2 = false
  560. Spooky.BackgroundColor3 = Color3.new(255, 255, 255)
  561. else
  562. g2 = true
  563. Spooky.BackgroundColor3 = Color3.new(0, 255, 0)
  564. if g2 then
  565. woodtype = "Spooky"
  566. end
  567. end
  568. end)
  569.  
  570. LightSpooky.MouseButton1Click:connect(function()
  571. if g3 == true then
  572. g3 = false
  573. LightSpooky.BackgroundColor3 = Color3.new(255, 255, 255)
  574. else
  575. g3 = true
  576. LightSpooky.BackgroundColor3 = Color3.new(0, 255, 0)
  577. if g3 then
  578. woodtype = "SpookyNeon"
  579. end
  580. end
  581. end)
  582.  
  583. Blue.MouseButton1Click:connect(function()
  584. if g4 == true then
  585. g4 = false
  586. Blue.BackgroundColor3 = Color3.new(255, 255, 255)
  587. else
  588. g4 = true
  589. Blue.BackgroundColor3 = Color3.new(0, 255, 0)
  590. if g4 then
  591. woodtype = "CaveCrawler"
  592. end
  593. end
  594. end)
  595.  
  596. Phantom.MouseButton1Click:connect(function()
  597. if g5 == true then
  598. g5 = false
  599. Phantom.BackgroundColor3 = Color3.new(255, 255, 255)
  600. else
  601. g5 = true
  602. Phantom.BackgroundColor3 = Color3.new(0, 255, 0)
  603. if g5 then
  604. woodtype = "LoneCave"
  605. end
  606. end
  607. end)
  608.  
  609. -- GOLD AXE
  610. GoldAxe.MouseButton1Down:Connect(function()
  611. GoldAxe.BackgroundColor3 = Color3.new(0, 255, 0)
  612. GoldAxe.Text = "Active, Cant To off"
  613. Detect = coroutine.wrap(function()
  614. Player = game.Players.LocalPlayer
  615. mouse = Player:GetMouse()
  616. mouse.Button1Down:connect(function()
  617. MouseDown = true
  618. end)
  619. mouse.Button1Up:connect(function()
  620. MouseDown = false
  621. end)
  622. end)
  623. Detect()
  624. Player = game.Players.LocalPlayer
  625. mouse = Player:GetMouse()
  626. game:GetService('RunService').RenderStepped:connect(function()
  627. if Player.Character:FindFirstChild("Tool") then
  628. if MouseDown == true then
  629. if mouse.Target.Name == "WoodSection" then
  630. targetWood = mouse.Target
  631. Tool=Player.Character.Tool
  632. ---FaceVector
  633. Height = targetWood.CFrame:pointToObjectSpace(mouse.Hit.p).Y + targetWood.Size.Y/2
  634. local ray = Ray.new(Player.Character.Head.Position, ((targetWood.CFrame * CFrame.new(0, Height - targetWood.Size.Y/2, 0)).p - Player.Character.Head.Position).unit * 200)
  635. part,_,p = workspace:FindPartOnRay(ray, Player.Character)
  636. function fixVector(V)
  637. return Vector3.new(math.floor(V.X + 0.5), math.floor(V.Y + 0.5), math.floor(V.Z + 0.5))
  638. end
  639. local faceVector = fixVector(targetWood.CFrame:vectorToObjectSpace(p))
  640. if faceVector.Y ~= 0 then
  641. return
  642. end
  643. local lookAtCFrame = CFrame.new(Player.Character.Head.Position, mouse.Hit.p)
  644. local relativeCFrame = lookAtCFrame:toObjectSpace(targetWood.CFrame * CFrame.Angles(math.pi/2, 0, 0))
  645. local relativeLookVector = relativeCFrame.lookVector
  646. local m = relativeLookVector.Y >= 0 and 1 or -1
  647. if faceVector.X == 1 then
  648. faceVector = Vector3.new(0, 0, -1) * m
  649. elseif faceVector.X == -1 then
  650. faceVector = Vector3.new(0, 0, 1) * m
  651. elseif faceVector.Z == 1 then
  652. faceVector = Vector3.new(1, 0, 0) * m
  653. elseif faceVector.Z == -1 then
  654. faceVector = Vector3.new(-1, 0, 0) * m
  655. end
  656. local cutEvent = targetWood.Parent.CutEvent
  657. game.ReplicatedStorage.Interaction.RemoteProxy:FireServer(cutEvent, {sectionId = targetWood.ID.Value, faceVector = faceVector, height = Height, hitPoints = 0.2, cooldown = 0, cuttingClass = "Axe", tool = Player.Character.Tool})
  658. end
  659. end
  660. end
  661. end)
  662. end)
Add Comment
Please, Sign In to add comment