Advertisement
Upscalefanatic3

Lumber Tycoon 2 GUI STaTTiK Powers

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