Advertisement
YaBoyGalaxy

i cri

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