Advertisement
Guest User

LT2 GUI

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