MadDog_YT

LTD2 TP Gui

Jan 13th, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.13 KB | None | 0 0
  1. --[[
  2. ORIGINAL POST: https://v3rmillion.net/showthread.php?tid=424123&page=1
  3. UI and 90% of scripting scripted from scratch by DrSTaTTiK
  4. I know I didn't ask for sigmas GreyWood script but credit to him
  5. the user by the name of joseph2235(Your're welcome) provided the
  6. script made by sigma.
  7. Please give to ye boy DrSTaTTiK credit for his work.
  8.  
  9. THANKS!!
  10. --]]
  11.  
  12. local service = setmetatable({}, {
  13. __index = function(t, k)
  14. return game:GetService(k)
  15. end
  16. })
  17.  
  18. if service.Players.LocalPlayer.PlayerGui:FindFirstChild("DrSTaTTiK") then
  19. service.Players.LocalPlayer.PlayerGui:FindFirstChild("DrSTaTTiK"):Destroy()
  20. end
  21.  
  22. function Create(cls,props)
  23. local inst = Instance.new(cls)
  24. for i,v in pairs(props) do
  25. inst[i] = v
  26. end
  27. return inst
  28. end
  29.  
  30. local HitPoints={
  31. ['GoldAxe']= 50;
  32. ['BasicHatchet']= 0.2;
  33. ['Axe1']= 0.55;
  34. ['Axe2']= 0.93;
  35. ['AxeAlphaTesters']= 1.5;
  36. ['Rukiryaxe']= 1.68;
  37. ['Axe3']= 1.45;
  38. ['AxeBetaTesters']= 1.45;
  39. ['FireAxe']= 0.6;
  40. ['SilverAxe']= 1.6;
  41. ['EndTimesAxe']= 10000000;
  42. ['AxeChicken']= 0.1;
  43. ['CandyCaneAxe']= 0;
  44. }
  45.  
  46. local WayPointss = {
  47. ["Spawn"] = CFrame.new(155, 3, 74),
  48. ["Wood R Us"] = CFrame.new(265, 3, 57),
  49. ["Land Store"] = CFrame.new(258, 3, -99),
  50. ["Dock"] = CFrame.new(1114, -1, -197),
  51. ["Link's Logic"] = CFrame.new(4605, 3, -727),
  52. ["Cave"] = CFrame.new(3581, -179, 430),
  53. ["Volcano"] = CFrame.new(-1585, 622, 1140),
  54. ["Swamp"] = CFrame.new(-1209, 132, -801),
  55. ["Palm Island"] = CFrame.new(2549, -5, -42),
  56. ["Fancy Furnishings"] = CFrame.new(491, 3, -1720),
  57. ["Boxed Cars"] = CFrame.new(509, 3, -1463),
  58. ["Fine Arts Shop"] = CFrame.new(5207, -166, 719),
  59. ["Bob's Shack"] = CFrame.new(260, 8, -2542),
  60. ["Bridge"] = CFrame.new(113, 11, -977),
  61. ["End Times"] = CFrame.new(113, -214, -951),
  62. ["Shrine of Sight"] = CFrame.new(-1600, 195, 919),
  63. ["The Den"] = CFrame.new(323, 41, 1930),
  64. ["Volcano Win"] = CFrame.new(-1675, 348, 1476),
  65. ["Ski Lodge"] = CFrame.new(1244, 62, 2306),
  66. ["Strange Man"] = CFrame.new(1061, 16, 1131)
  67. }
  68.  
  69. function GetAxe()
  70. if service.Players.LocalPlayer.Character:FindFirstChild("Tool") then
  71. return service.Players.LocalPlayer.Character:FindFirstChild("Tool")
  72. end
  73. end
  74.  
  75. local Walk=16
  76. local Jump=100
  77.  
  78. function god()
  79. game.Players.LocalPlayer.Character.Humanoid.Name = "1"
  80. local l = game.Players.LocalPlayer.Character["1"]:Clone()
  81. l.Parent = game.Players.LocalPlayer.Character
  82. l.Name = "Humanoid"
  83. wait(0.1)
  84. game.Players.LocalPlayer.Character["1"]:Destroy()
  85. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
  86. game.Players.LocalPlayer.Character.Animate.Disabled = true
  87. l.Changed:Connect(function()
  88. if l then
  89. l.WalkSpeed=Walk
  90. l.JumpPower=Jump
  91. end
  92. end)
  93. end
  94.  
  95. function SetTransOfShadow(Trans,UI)
  96. for i,v in pairs(UI:GetChildren()) do
  97. if v.Name=="Shadow" then
  98. v.Transparency=Trans
  99. end
  100. end
  101. end
  102.  
  103. function MakeShadow(UI,Index)
  104. Create("Frame",{Parent=UI,Size=UDim2.new(1,0,1,0),ZIndex=Index,Position=UDim2.new(0,1,0,1),BackgroundColor3=Color3.fromRGB(0,0,0),BorderSizePixel=0,Transparency=0.9,Name="Shadow"})
  105. Create("Frame",{Parent=UI,Size=UDim2.new(1,0,1,0),ZIndex=Index,Position=UDim2.new(0,2,0,2),BackgroundColor3=Color3.fromRGB(0,0,0),BorderSizePixel=0,Transparency=0.9,Name="Shadow"})
  106. Create("Frame",{Parent=UI,Size=UDim2.new(1,0,1,0),ZIndex=Index,Position=UDim2.new(0,3,0,3),BackgroundColor3=Color3.fromRGB(0,0,0),BorderSizePixel=0,Transparency=0.9,Name="Shadow"})
  107. end
  108.  
  109. local Glitching=false
  110. local Main = Create("ScreenGui",{Parent=service.Players.LocalPlayer.PlayerGui,Name="DrSTaTTiK"})
  111. local Open = Create("TextButton",{Parent=Main,Size=UDim2.new(0,40,0,20),ZIndex=2,Position=UDim2.new(.5,-20,.9,-10),Text="Open",BackgroundColor3=Color3.fromRGB(218, 114, 45),BorderSizePixel=0})
  112. local Hub = Create("Frame",{Parent=Main,Size=UDim2.new(0,400,0,300),Position=UDim2.new(.3,0,.5,0),Draggable=true,Visible=false,Transparency=1,ZIndex=100,Active=true})
  113. local TopBar = Create("Frame",{Parent=Hub,Size=UDim2.new(1,0,.1,0),BackgroundColor3=Color3.fromRGB(218, 114, 45),BorderSizePixel=0,ZIndex=4})
  114. local Exit = Create("TextButton",{Parent=TopBar,ZIndex=4,Size=UDim2.new(.075,0,1,0),Position=UDim2.new(.925,0,0,0),TextScaled=false,TextSize=14,BackgroundTransparency=1,Text="X"})
  115. local Name = Create("TextLabel",{Parent=TopBar,ZIndex=4,Size=UDim2.new(.5,0,1,0),Position=UDim2.new(0,10,0,0),TextStrokeTransparency=0.9,Text="Produced by DrSTaTTiK",TextColor3=Color3.fromRGB(230,230,230),BackgroundTransparency=1,TextXAlignment="Left",BorderSizePixel=0})
  116. local Menu = Create("ImageLabel",{Parent=Hub,Size=UDim2.new(1,0,.9,0),ZIndex=2,ImageColor3=Color3.fromRGB(100,100,100),ScaleType="Tile",TileSize=UDim2.new(0,100,0,100),Image="rbxassetid://585867512",Position=UDim2.new(0,0,.1,0),BorderSizePixel=0})
  117. local TPWood = Create("TextButton",{Parent=Menu,ZIndex=3,Size=UDim2.new(0.25,0,.1,0),Position=UDim2.new(0,10,0,10),Text="TPWood",BorderSizePixel=0})
  118. local TPWoodToSell = Create("TextButton",{Parent=Menu,ZIndex=3,Size=UDim2.new(0.25,0,.1,0),Position=UDim2.new(.75,-10,0,10),Text="Sell Wood",BorderSizePixel=0})
  119. local GodMode = Create("TextButton",{Parent=Menu,ZIndex=3,Size=UDim2.new(0.25,0,.1,0),Position=UDim2.new(.75,-10,0.1,20),Text="GodMode",BorderSizePixel=0})
  120. --local TPWoodToPrecess = Create("TextButton",{Parent=Menu,ZIndex=3,Size=UDim2.new(0.25,0,.1,0),Position=UDim2.new(.75,-10,0.1,20),Text="Process Wood",BorderSizePixel=0})
  121. local GlitchWood = Create("TextButton",{Parent=Menu,ZIndex=3,Size=UDim2.new(0.25,0,.1,0),Position=UDim2.new(0,10,0.1,20),Text="GlitchWood: Off",BorderSizePixel=0})
  122. local WalkSpeed = Create("TextBox",{Parent=Menu,ZIndex=3,Size=UDim2.new(0.1,0,.1,0),Position=UDim2.new(0.15,10,0.2,30),Text="16",BorderSizePixel=0})
  123. local WalkSpeedName = Create("TextLabel",{Parent=Menu,ZIndex=3,Size=UDim2.new(0.125,0,.1,0),Position=UDim2.new(0,1,0.2,30),Text="WalkSpeed:",TextSize=8,TextXAlignment="Left",BorderSizePixel=0,TextColor3=Color3.fromRGB(255,255,255),BackgroundTransparency=1})
  124. local JumpPower = Create("TextBox",{Parent=Menu,ZIndex=3,Size=UDim2.new(0.1,0,.1,0),Position=UDim2.new(.15,10,0.3,40),Text="50",BorderSizePixel=0})
  125. local JumpPowerName = Create("TextLabel",{Parent=Menu,ZIndex=3,Size=UDim2.new(0.125,0,.1,0),Position=UDim2.new(0,1,0.3,40),Text="JumpPower:",TextSize=8,TextXAlignment="Left",BorderSizePixel=0,TextColor3=Color3.fromRGB(255,255,255),BackgroundTransparency=1})
  126. local TabDistance = Create("TextLabel",{Parent=Menu,ZIndex=3,Size=UDim2.new(0.25,0,.1,0),Position=UDim2.new(0.35,0,0.02,20),Text="Length",TextColor3=Color3.fromRGB(255,255,255),BackgroundTransparency=1,BorderSizePixel=0})
  127. local Distance = Create("TextBox",{Parent=Menu,ZIndex=4,Size=UDim2.new(0.25,0,.1,0),Position=UDim2.new(0.35,0,0.1,20),BackgroundColor3=Color3.fromRGB(200,200,200),Text="50",BorderSizePixel=0})
  128. local Hub2 = Create("Frame",{Parent=Main,Size=UDim2.new(0,150,0,300),Position=UDim2.new(.3,410,.5,0),Draggable=true,Visible=false,Transparency=1,ZIndex=100,Active=true})
  129. local TopBar2 = Create("Frame",{Parent=Hub2,Size=UDim2.new(1,0,.1,0),BackgroundColor3=Color3.fromRGB(218, 114, 45),BorderSizePixel=0,ZIndex=4})
  130. local Name2 = Create("TextLabel",{Parent=TopBar2,ZIndex=4,Size=UDim2.new(.5,0,1,0),Position=UDim2.new(0,10,0,0),TextStrokeTransparency=0.9,Text="WayPoints",TextColor3=Color3.fromRGB(230,230,230),BackgroundTransparency=1,TextXAlignment="Left",BorderSizePixel=0})
  131. local Menu2 = Create("ImageLabel",{Parent=Hub2,Size=UDim2.new(1,0,.9,0),ZIndex=2,ImageColor3=Color3.fromRGB(100,100,100),ScaleType="Tile",TileSize=UDim2.new(0,100,0,100),Image="rbxassetid://585867512",Position=UDim2.new(0,0,.1,0),BorderSizePixel=0})
  132. local WayPoints = Create("ScrollingFrame",{Parent=Menu2,ZIndex=4,BorderSizePixel=0,Size=UDim2.new(.8,0,.9,0),BackgroundColor3=Color3.fromRGB(50,50,50),Position=UDim2.new(.1,0,0.05,0),ScrollBarThickness=0,Transparency=0.8})
  133. local Hub3 = Create("Frame",{Parent=Main,Size=UDim2.new(0,150,0,300),Position=UDim2.new(.3,-160,.5,0),Draggable=true,Visible=false,Transparency=1,ZIndex=100,Active=true})
  134. local TopBar3 = Create("Frame",{Parent=Hub3,Size=UDim2.new(1,0,.1,0),BackgroundColor3=Color3.fromRGB(218, 114, 45),BorderSizePixel=0,ZIndex=4})
  135. local Name3 = Create("TextLabel",{Parent=TopBar3,ZIndex=4,Size=UDim2.new(.5,0,1,0),Position=UDim2.new(0,10,0,0),TextStrokeTransparency=0.9,Text="Player Bases",TextColor3=Color3.fromRGB(230,230,230),BackgroundTransparency=1,TextXAlignment="Left",BorderSizePixel=0})
  136. local Menu3 = Create("ImageLabel",{Parent=Hub3,Size=UDim2.new(1,0,.9,0),ZIndex=2,ImageColor3=Color3.fromRGB(100,100,100),ScaleType="Tile",TileSize=UDim2.new(0,100,0,100),Image="rbxassetid://585867512",Position=UDim2.new(0,0,.1,0),BorderSizePixel=0})
  137. local PlayersBases = Create("ScrollingFrame",{Parent=Menu3,ZIndex=4,BorderSizePixel=0,Size=UDim2.new(.8,0,.9,0),BackgroundColor3=Color3.fromRGB(50,50,50),Position=UDim2.new(.1,0,0.05,0),ScrollBarThickness=0,Transparency=0.8})
  138. local Hub4 = Create("Frame",{Parent=Main,Size=UDim2.new(0,150,0,300),Position=UDim2.new(.3,-330,.5,0),Draggable=true,Visible=false,Transparency=1,ZIndex=100,Active=true})
  139. local Menu4 = Create("ImageLabel",{Parent=Hub4,Size=UDim2.new(1,0,.9,0),ZIndex=2,ImageColor3=Color3.fromRGB(100,100,100),ScaleType="Tile",TileSize=UDim2.new(0,100,0,100),Image="rbxassetid://585867512",Position=UDim2.new(0,0,.1,0),BorderSizePixel=0})
  140. local TopBar4 = Create("Frame",{Parent=Hub4,Size=UDim2.new(1,0,.1,0),BackgroundColor3=Color3.fromRGB(218, 114, 45),BorderSizePixel=0,ZIndex=4})
  141. local Name3 = Create("TextLabel",{Parent=TopBar4,ZIndex=4,Size=UDim2.new(.5,0,1,0),Position=UDim2.new(0,10,0,0),TextStrokeTransparency=0.9,Text="Players",TextColor3=Color3.fromRGB(230,230,230),BackgroundTransparency=1,TextXAlignment="Left",BorderSizePixel=0})
  142. local Players = Create("ScrollingFrame",{Parent=Menu4,ZIndex=4,BorderSizePixel=0,Size=UDim2.new(.8,0,.9,0),BackgroundColor3=Color3.fromRGB(50,50,50),Position=UDim2.new(.1,0,0.05,0),ScrollBarThickness=0,Transparency=0.8})
  143. local TeleportToSpook = Create("TextButton",{Parent=Menu,ZIndex=3,Size=UDim2.new(0.25,0,.1,0),Position=UDim2.new(0,10,0.4,50),Text="Teleport to Spook",BorderSizePixel=0})
  144. local BlueprintToGreyWood = Create("TextButton",{Parent=Menu,ZIndex=3,Size=UDim2.new(0.25,0,.1,0),Position=UDim2.new(0,10,0.5,60),Text="Blueprint to\nGreyWood",BorderSizePixel=0})
  145. local Warning = Create("TextLabel",{Parent=Hub,ZIndex=4,Size=UDim2.new(.5,0,1,5),Position=UDim2.new(0,0,.5,10),TextStrokeTransparency=0.7,Text="Press or hold E to use the GlitchWood option.\nAfter clicking Blueprint to GreyWood pick the blueprint up then palce it back down with B/E",TextColor3=Color3.fromRGB(218, 114, 45),BackgroundTransparency=1,TextXAlignment="Left",BorderSizePixel=0})
  146. local WarningGreyWood = Create("TextLabel",{Parent=Hub,ZIndex=4,Size=UDim2.new(.5,0,1,55),Position=UDim2.new(0,0,.5,10),TextStrokeTransparency=0.7,Text="Some Blueprints do not turn to GreyWood so if you lose a Blueprint oh well. \nand dont try to cut trees with their corresponding super axe you will die.",TextColor3=Color3.fromRGB(255, 0, 0),BackgroundTransparency=1,TextXAlignment="Left",BorderSizePixel=0})
  147. local Minimize = Create("TextButton",{Parent=TopBar,ZIndex=4,Size=UDim2.new(.1,0,1,0),Position=UDim2.new(.85,0,0,0),TextScaled=true,TextSize=14,BackgroundTransparency=1,Text="-"})
  148. local Minimize2 = Create("TextButton",{Parent=TopBar2,ZIndex=4,Size=UDim2.new(.1,0,1,0),Position=UDim2.new(.85,0,0,0),TextScaled=true,TextSize=14,BackgroundTransparency=1,Text="-"})
  149. local Minimize3 = Create("TextButton",{Parent=TopBar3,ZIndex=4,Size=UDim2.new(.1,0,1,0),Position=UDim2.new(.85,0,0,0),TextScaled=true,TextSize=14,BackgroundTransparency=1,Text="-"})
  150. local Minimize4 = Create("TextButton",{Parent=TopBar4,ZIndex=4,Size=UDim2.new(.1,0,1,0),Position=UDim2.new(.85,0,0,0),TextScaled=true,TextSize=14,BackgroundTransparency=1,Text="-"})
  151.  
  152.  
  153. MakeShadow(TopBar,3)
  154. MakeShadow(Hub,1)
  155. MakeShadow(Hub2,1)
  156. MakeShadow(TopBar2,3)
  157. MakeShadow(Hub3,1)
  158. MakeShadow(TopBar3,3)
  159. MakeShadow(Hub4,1)
  160. MakeShadow(TopBar4,3)
  161. MakeShadow(TPWood,2)
  162. MakeShadow(GlitchWood,2)
  163. MakeShadow(Distance,2)
  164. MakeShadow(Open,0)
  165. MakeShadow(WalkSpeed,2)
  166. MakeShadow(JumpPower,2)
  167. MakeShadow(TPWoodToSell,2)
  168. MakeShadow(TeleportToSpook,2)
  169. --MakeShadow(TPWoodToPrecess,2)
  170. MakeShadow(BlueprintToGreyWood,2)
  171. MakeShadow(GodMode,2)
  172.  
  173. local numb=0
  174. for key,value in next, WayPointss do
  175. WayPoints.CanvasSize=UDim2.new(0,0,0,30*numb)
  176. local button = Create("TextButton",{Parent=WayPoints,Text=key,Size=UDim2.new(1,0,0,20),ZIndex=4,BorderSizePixel=0,Position=UDim2.new(0,0,0,30*numb)})
  177. MakeShadow(button,3)
  178. numb=numb+1
  179. button.MouseButton1Click:Connect(function()
  180. service.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(value.p+Vector3.new(0,5,0))
  181. end)
  182. end
  183. local numbb=0
  184. for i,v in pairs(service.Workspace.Properties:GetChildren()) do
  185. if v.Owner and v.Owner.Value then
  186. PlayersBases.CanvasSize=UDim2.new(0,0,0,30*numbb)
  187. local button = Create("TextButton",{Parent=PlayersBases,Text=v.Owner.Value.Name,Size=UDim2.new(1,0,0,20),ZIndex=4,BorderSizePixel=0,Position=UDim2.new(0,0,0,30*numbb)})
  188. MakeShadow(button,3)
  189. numbb=numbb+1
  190. button.MouseButton1Click:Connect(function()
  191. service.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(v.OriginSquare.Position+Vector3.new(0,5,0))
  192. end)
  193. end
  194. v.Owner.Changed:Connect(function()
  195. numbb=0
  196. PlayersBases:ClearAllChildren()
  197. for i,v in pairs(service.Workspace.Properties:GetChildren()) do
  198. if v.Owner and v.Owner.Value then
  199. PlayersBases.CanvasSize=UDim2.new(0,0,0,30*numbb)
  200. local button = Create("TextButton",{Parent=PlayersBases,Text=v.Owner.Value.Name,Size=UDim2.new(1,0,0,20),ZIndex=4,BorderSizePixel=0,Position=UDim2.new(0,0,0,30*numbb)})
  201. MakeShadow(button,3)
  202. numbb=numbb+1
  203. button.MouseButton1Click:Connect(function()
  204. service.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(v.OriginSquare.Position+Vector3.new(0,5,0))
  205. end)
  206. end
  207. end
  208. numbb=0
  209. end)
  210. end
  211.  
  212. local numbbb=0
  213. for i,v in pairs(service.Players:GetPlayers()) do
  214. if v.Character then
  215. Players.CanvasSize=UDim2.new(0,0,0,30*numbbb)
  216. local button = Create("TextButton",{Parent=Players,Text=v.Name,Size=UDim2.new(1,0,0,20),ZIndex=4,BorderSizePixel=0,Position=UDim2.new(0,0,0,30*numbbb)})
  217. MakeShadow(button,3)
  218. numbbb=numbbb+1
  219. button.MouseButton1Click:Connect(function()
  220. service.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(v.Character.HumanoidRootPart.Position+Vector3.new(0,5,0))
  221. end)
  222. end
  223. end
  224. service.Players.PlayerAdded:Connect(function()
  225. numbbb=0
  226. Players:ClearAllChildren()
  227. for i,v in pairs(service.Players:GetPlayers()) do
  228. while not v.Character do wait() end
  229. if v.Character then
  230. Players.CanvasSize=UDim2.new(0,0,0,30*numbbb)
  231. local button = Create("TextButton",{Parent=Players,Text=v.Name,Size=UDim2.new(1,0,0,20),ZIndex=4,BorderSizePixel=0,Position=UDim2.new(0,0,0,30*numbbb)})
  232. MakeShadow(button,3)
  233. numbbb=numbbb+1
  234. button.MouseButton1Click:Connect(function()
  235. service.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(v.Character.HumanoidRootPart.Position+Vector3.new(0,5,0))
  236. end)
  237. end
  238. end
  239. numbbb=0
  240. end)
  241. service.Players.PlayerRemoving:Connect(function()
  242. numbbb=0
  243. Players:ClearAllChildren()
  244. for i,v in pairs(service.Players:GetPlayers()) do
  245. if v.Character then
  246. Players.CanvasSize=UDim2.new(0,0,0,30*numbbb)
  247. local button = Create("TextButton",{Parent=Players,Text=v.Name,Size=UDim2.new(1,0,0,20),ZIndex=4,BorderSizePixel=0,Position=UDim2.new(0,0,0,30*numbbb)})
  248. MakeShadow(button,3)
  249. numbbb=numbbb+1
  250. button.MouseButton1Click:Connect(function()
  251. service.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(v.Character.HumanoidRootPart.Position+Vector3.new(0,5,0))
  252. end)
  253. end
  254. end
  255. numbbb=0
  256. end)
  257.  
  258. Minimize.MouseButton1Click:Connect(function()
  259. if Menu.Visible==true then
  260. Menu.Visible=false
  261. Warning.Visible=false
  262. SetTransOfShadow(1,Hub)
  263. else
  264. Menu.Visible=true
  265. Warning.Visible=true
  266. SetTransOfShadow(0.9,Hub)
  267. end
  268. end)
  269.  
  270. Minimize2.MouseButton1Click:Connect(function()
  271. if Menu2.Visible==true then
  272. Menu2.Visible=false
  273. SetTransOfShadow(1,Hub2)
  274. else
  275. Menu2.Visible=true
  276. SetTransOfShadow(0.9,Hub2)
  277. end
  278. end)
  279.  
  280. Minimize3.MouseButton1Click:Connect(function()
  281. if Menu3.Visible==true then
  282. Menu3.Visible=false
  283. SetTransOfShadow(1,Hub3)
  284. else
  285. Menu3.Visible=true
  286. SetTransOfShadow(0.9,Hub3)
  287. end
  288. end)
  289.  
  290. Minimize4.MouseButton1Click:Connect(function()
  291. if Menu4.Visible==true then
  292. Menu4.Visible=false
  293. SetTransOfShadow(1,Hub4)
  294. else
  295. Menu4.Visible=true
  296. SetTransOfShadow(0.9,Hub4)
  297. end
  298. end)
  299.  
  300. Exit.MouseButton1Click:Connect(function()
  301. if Hub.Visible then
  302. Hub.Visible=false
  303. Hub2.Visible=false
  304. Hub3.Visible=false
  305. Hub4.Visible=false
  306. Open.Visible=true
  307. end
  308. end)
  309.  
  310. Open.MouseButton1Click:Connect(function()
  311. if not Hub.Visible then
  312. Hub.Visible=true
  313. Hub2.Visible=true
  314. Hub3.Visible=true
  315. Hub4.Visible=true
  316. Open.Visible=false
  317. end
  318. end)
  319.  
  320. GodMode.MouseButton1Click:Connect(function()
  321. god()
  322. end)
  323.  
  324. WalkSpeed.Changed:Connect(function()
  325. Walk=tonumber(WalkSpeed.Text)
  326. end)
  327.  
  328. BlueprintToGreyWood.MouseButton1Click:Connect(function()
  329. for i,v in next,workspace.PlayerModels:GetChildren() do
  330. if v:FindFirstChild("Type") then
  331. if v.Type.Value == "Blueprint" then
  332. v.Type.Value = "Structure"
  333. end
  334. end
  335. end
  336. end)
  337.  
  338. JumpPower.Changed:Connect(function()
  339. Jump=tonumber(JumpPower.Text)
  340. end)
  341.  
  342. service.Players.LocalPlayer.Character.Humanoid.Changed:Connect(function()
  343. if service.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  344. service.Players.LocalPlayer.Character.Humanoid.WalkSpeed=Walk
  345. service.Players.LocalPlayer.Character.Humanoid.JumpPower=Jump
  346. end
  347. end)
  348.  
  349. BlueprintToGreyWood.MouseButton1Click:Connect(function()
  350. for i,v in next,workspace.PlayerModels:GetChildren() do
  351. if v:FindFirstChild("Type") then
  352. if v.Type.Value == "Blueprint" then
  353. v.Type.Value = "Structure"
  354. end
  355. end
  356. end
  357. end)
  358.  
  359. TPWood.MouseButton1Click:Connect(function()
  360. for _, Log in pairs(service.Workspace.LogModels:GetChildren()) do
  361. if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
  362. if Log.Owner.Value == service.Players.LocalPlayer then
  363. Log:MoveTo(service.Players.LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0, 20, 0))
  364. for i=1,100 do
  365. service.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log)
  366. end
  367. end
  368. end
  369. end
  370. end)
  371.  
  372. TPWoodToSell.MouseButton1Click:Connect(function()
  373. for _, Log in pairs(service.Workspace.LogModels:GetChildren()) do
  374. if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
  375. if Log.Owner.Value == service.Players.LocalPlayer then
  376. for i,v in pairs(Log:GetChildren()) do
  377. if v.Name=="WoodSection" then
  378. spawn(function()
  379. for i=1,10 do
  380. wait()
  381. v.CFrame=CFrame.new(Vector3.new(315, -0.296, 85.791))*CFrame.Angles(math.rad(90),0,0)
  382. end
  383. end)
  384. end
  385. end
  386. spawn(function()
  387. for i=1,20 do
  388. wait()
  389. service.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log)
  390. end
  391. end)
  392. end
  393. end
  394. end
  395. end)
  396.  
  397. TeleportToSpook.MouseButton1Click:Connect(function()
  398. for i, v in pairs(game.Workspace:GetChildren()) do
  399. if v.Name == "TreeRegion" then
  400. for j, k in ipairs(v:GetChildren()) do
  401. if k:FindFirstChild("TreeClass") and k.TreeClass.Value == "Spooky" or k:FindFirstChild("TreeClass") and k.TreeClass.Value == "SpookyNeon" then
  402. game.Players.LocalPlayer.Character:MoveTo(k.WoodSection.Position)
  403. break
  404. end
  405. end
  406. end
  407. end
  408. end)
  409.  
  410. GlitchWood.MouseButton1Click:Connect(function()
  411. if not Glitching then
  412. Glitching=true
  413. GlitchWood.Text="GlitchWood: On"
  414. else
  415. Glitching=false
  416. GlitchWood.Text="GlitchWood: Off"
  417. end
  418. end)
  419.  
  420. local Pressing = false
  421.  
  422. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key)
  423. if key=="e" and Glitching then
  424. Pressing=true
  425. poop(GetAxe())
  426. end
  427. end)
  428.  
  429. game.Players.LocalPlayer:GetMouse().KeyUp:Connect(function(key)
  430. if key=="e" then
  431. Pressing=false
  432. end
  433. end)
  434.  
  435. function cut(Height,Tool)
  436. local Tree=game.Players.LocalPlayer:GetMouse().Target
  437. game.ReplicatedStorage.Interaction.RemoteProxy:FireServer(Tree.Parent.CutEvent,{
  438. ["cuttingClass"] = "Axe",
  439. ["cooldown"] = 0,
  440. ["hitPoints"] = HitPoints[Tool.ToolName.Value],
  441. ["sectionId"] = 1,
  442. ["tool"] = Tool,
  443. ["faceVector"] = Vector3.new(-1,0,0),
  444. ["height"] = Height})
  445. end
  446.  
  447. function poop(Tool)
  448. while Pressing do
  449. for i=1,50 do
  450. wait()
  451. cut(tonumber(Distance.Text),Tool)
  452. cut(1,Tool)
  453. end
  454. end
  455. end
  456.  
  457. ----Fly function
  458.  
  459. do
  460. function fly()
  461.  
  462. for i,v in pairs(script:GetChildren()) do
  463. pcall(function() v.Value = "" end)
  464. game:GetService("Debris"):AddItem(v,.1)
  465. end
  466.  
  467. function weld(p0,p1,c0,c1,par)
  468. local w = Instance.new("Weld",p0 or par)
  469. w.Part0 = p0
  470. w.Part1 = p1
  471. w.C0 = c0 or CFrame.new()
  472. w.C1 = c1 or CFrame.new()
  473. return w
  474. end
  475.  
  476. local motors = {}
  477.  
  478. function motor(p0,p1,c0,c1,des,vel,par)
  479. local w = Instance.new("Motor6D",p0 or par)
  480. w.Part0 = p0
  481. w.Part1 = p1
  482. w.C0 = c0 or CFrame.new()
  483. w.C1 = c1 or CFrame.new()
  484. w.MaxVelocity = tonumber(vel) or .05
  485. w.DesiredAngle = tonumber(des) or 0
  486. return w
  487. end
  488.  
  489. function lerp(a,b,c)
  490. return a+(b-a)*c
  491. end
  492.  
  493. function clerp(c1,c2,al)
  494. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  495. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  496. for i,v in pairs(com1) do
  497. com1[i] = lerp(v,com2[i],al)
  498. end
  499. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  500. end
  501.  
  502. function ccomplerp(c1,c2,al)
  503. local com1 = {c1:components()}
  504. local com2 = {c2:components()}
  505. for i,v in pairs(com1) do
  506. com1[i] = lerp(v,com2[i],al)
  507. end
  508. return CFrame.new(unpack(com1))
  509. end
  510.  
  511. function tickwave(time,length,offset)
  512. return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
  513. end
  514.  
  515. function invcol(c)
  516. c = c.Color
  517. return BrickColor.new(Color3.new(1-c.b,1-c.g,1-c.r))
  518. end
  519. local oc = oc or function(...) return ... end
  520. local plr = game.Players.LocalPlayer
  521. local char = plr.Character
  522. local tor = char.Torso
  523. local hum = char.Humanoid
  524. hum.PlatformStand = false
  525. pcall(function()
  526. char.Wings:Destroy()
  527. end)
  528. pcall(function()
  529. char.Angel:Destroy() -- hat
  530. end)
  531. local mod = Instance.new("Model",char)
  532. mod.Name = "Wings"
  533. local special = {
  534. [game.Players.LocalPlayer.Name] = {"Black","Bright red",.5,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  535. }
  536. local topcolor = BrickColor.new("Really black")
  537. local feacolor = BrickColor.new("Black")
  538. local ptrans = 0
  539. local pref = 0
  540. local fire = true
  541. local fmcol = Color3.new()
  542. local fscol = Color3.new()
  543. local spec = special[plr.Name:lower()]
  544. if spec then
  545. topcolor,feacolor,ptrans,pref,fire,fmcol,fscol = spec[1] and BrickColor.new(spec[1]) or topcolor,spec[2] and BrickColor.new(spec[2]) or feacolor,spec[3],spec[4],spec[5],spec[6],spec[7]
  546. end
  547. local part = Instance.new("Part")
  548. part.FormFactor = "Custom"
  549. part.Size = Vector3.new(.2,.2,.2)
  550. part.TopSurface,part.BottomSurface = 0,0
  551. part.CanCollide = false
  552. part.BrickColor = BrickColor.new("Black")
  553. part.Transparency = ptrans
  554. part.Reflectance = pref
  555. local ef = Instance.new("Fire",fire and part or nil)
  556. ef.Size = .15
  557. ef.Color = BrickColor.new("Black").Color
  558. ef.SecondaryColor = BrickColor.new("Bright red").Color
  559. part:BreakJoints()
  560. function newpart()
  561. local clone = part:Clone()
  562. clone.Parent = mod
  563. clone:BreakJoints()
  564. return clone
  565. end
  566. local feath = newpart()
  567. feath.BrickColor = feacolor
  568. feath.Transparency = 0
  569. Instance.new("SpecialMesh",feath).MeshType = "Sphere"
  570. function newfeather()
  571. local clone = feath:Clone()
  572. clone.Parent = mod
  573. clone:BreakJoints()
  574. return clone
  575. end
  576.  
  577. ---------- RIGHT WING
  578.  
  579. flying = false
  580. moving = false
  581. for i,v in pairs(tor:GetChildren()) do
  582. if v.ClassName:lower():match("body") then
  583. v:Destroy()
  584. end
  585. end
  586. local ctor = tor:Clone()
  587. ctor:ClearAllChildren()
  588. ctor.Name = "cTorso"
  589. ctor.Transparency = 1
  590. ctor.CanCollide = false
  591. ctor.FormFactor = "Custom"
  592. ctor.Size = Vector3.new(.2,.2,.2)
  593. ctor.Parent = mod
  594. weld(tor,ctor)
  595. local bg = Instance.new("BodyGyro",ctor)
  596. bg.maxTorque = Vector3.new()
  597. bg.P = 15000
  598. bg.D = 1000
  599. local bv = Instance.new("BodyVelocity",ctor)
  600. bv.maxForce = Vector3.new()
  601. bv.P = 15000
  602. vel = Vector3.new()
  603. cf = CFrame.new()
  604. flspd = 0
  605. keysdown = {}
  606. keypressed = {}
  607. ktime = {}
  608. descendtimer = 0
  609. jumptime = tick()
  610. hum.Jumping:connect(function()
  611. jumptime = tick()
  612. end)
  613. cam = workspace.CurrentCamera
  614. kd = plr:GetMouse().KeyDown:connect(oc(function(key)
  615. keysdown[key] = true
  616. keypressed[key] = true
  617. if key == "q" then
  618. descendtimer = tick()
  619. elseif key == " " and not hum.Jump then
  620. jumptime = tick()
  621. elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then
  622. reqrotx = key == "a" and math.pi*2 or -math.pi*2
  623. end
  624. ktime[key] = tick()
  625. end))
  626.  
  627. ku = plr:GetMouse().KeyUp:connect(function(key)
  628. keysdown[key] = false
  629. if key == " " then
  630. descendtimer = tick()
  631. end
  632. end)
  633. function mid(a,b,c)
  634. return math.max(a,math.min(b,c or -a))
  635. end
  636. function bn(a)
  637. return a and 1 or 0
  638. end
  639. function gm(tar)
  640. local m = 0
  641. for i,v in pairs(tar:GetChildren()) do
  642. if v:IsA("BasePart") then
  643. m = m + v:GetMass()
  644. end
  645. m = m + gm(v)
  646. end
  647. return m
  648. end
  649. reqrotx = 0
  650. local grav = 196.2
  651. local con
  652. con = game:GetService("RunService").Stepped:connect(oc(function()
  653. local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity)
  654. local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z
  655. if flying then
  656. local lfldir = fldir
  657. fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit
  658. local lmoving = moving
  659. moving = fldir.magnitude > .1
  660. if lmoving and not moving then
  661. idledir = lfldir*Vector3.new(1,0,1)
  662. descendtimer = tick()
  663. end
  664. local dbomb = fldir.Y < -.6 or (moving and keysdown["1"])
  665. if moving and keysdown["0"] and lmoving then
  666. fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit
  667. end
  668. local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0))
  669. local descending = (not moving and keysdown["q"] and not keysdown[" "])
  670. cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07)
  671. local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05
  672. hum.PlatformStand = true
  673. bg.maxTorque = Vector3.new(1,1,1)*9e5
  674. local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector
  675. bg.cframe = cf * CFrame.Angles(not moving and -.1 or -math.pi/2+.2,moving and mid(-2.5,rotvel.X/1.5) + reqrotx or 0,0)
  676. reqrotx = reqrotx - reqrotx/10
  677. bv.maxForce = Vector3.new(1,1,1)*9e4*.5
  678. local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2
  679. local ani = tickwave(1.5-anioff,1)
  680. bv.velocity = bv.velocity:Lerp(Vector3.new(0,bn(not moving)*-ani*15+(descending and math.min(20,tick()-descendtimer)*-8 or bn(keysdown[" "])-bn(keysdown["q"]))*15,0)+vel,.6)
  681. vel = moving and cf.lookVector*flspd or Vector3.new()
  682. flspd = math.min(120,lerp(flspd,moving and (fldir.Y<0 and flspd+(-fldir.Y)*grav/60 or math.max(50,flspd-fldir.Y*grav/300)) or 60,.4))
  683. local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),{char})
  684. if hit and down.Y < -.85 and tick()-flystart > 1 then
  685. flying = false
  686. hum.PlatformStand = false
  687. tor.Velocity = Vector3.new()
  688. end
  689. else
  690. bg.maxTorque = Vector3.new()
  691. bv.maxForce = Vector3.new()
  692. local x,y,z = fspd/160,uspd/700,sspd/900
  693. if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then
  694. vel = Vector3.new(0,50,0)
  695. bv.velocity = vel
  696. idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)
  697. cf = tor.CFrame * CFrame.Angles(-.01,0,0)
  698. tor.CFrame = cf
  699. bg.cframe = cf
  700. flystart = tick()
  701. flying = true
  702. end
  703. end
  704. keypressed = {}
  705. end))
  706. end
  707. fly()
  708. end
Add Comment
Please, Sign In to add comment