Advertisement
Guest User

Indonesian LT2 GUI VERSION ^_^

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