Advertisement
F34RZER0

dupe script

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