KevinPlayLT2

Command Lumbet Tycoon 2

Jul 14th, 2020
10,935
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.62 KB | None | 0 0
  1. local FlyS = true
  2.  
  3. game.Players.LocalPlayer.PlayerGui.Chat.Frame.ChatChannelParentFrame.Frame_MessageLogDisplay.Scroller.ChildAdded:connect(function(v)
  4. wait()
  5. if v.TextLabel:FindFirstChild("TextButton") then
  6. local Plr
  7. for a,b in pairs(game.Players:GetPlayers()) do
  8. if string.find(v.TextLabel.TextButton.Text, b.Name) then
  9. Plr = b.Name
  10. end
  11. end
  12. if Plr == game.Players.LocalPlayer.Name then
  13. if string.find(v.TextLabel.Text, "WipeTrees_") then
  14. for i,v in pairs(game.Workspace:GetDescendants()) do
  15. if v:FindFirstChild("WoodSection") then
  16. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  17. game.ReplicatedStorage.Interaction.DestroyStructure:FireServer(v)
  18. end
  19. end
  20. end
  21.  
  22. if string.find(v.TextLabel.Text, "ABuy_On") then
  23. repeat
  24. for i,v in pairs(game.Workspace.Stores:GetChildren()) do
  25. if v.Name == "ShopItems" or string.find(v.Name, "_") then
  26. for c,d in pairs(v:GetChildren()) do
  27. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(d)
  28. end
  29. wait(0.1)
  30. end
  31. end
  32. until game.ReplicatedStorage:FindFirstChild("Part")
  33. game.ReplicatedStorage.Part:Destroy()
  34. for i,v in pairs(game.Workspace.Stores:GetDescendants()) do
  35. if v.Parent.Name == "ShopItems" or string.find(v.Parent.Name, "_") then
  36. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  37. game.ReplicatedStorage.Interaction.DestroyStructure:FireServer(v)
  38. end
  39. end
  40. end
  41.  
  42. if string.find(v.TextLabel.Text, "ABuy_Off") then
  43. if not game.ReplicatedStorage:FindFirstChild("Part") then
  44. local Part = Instance.new("Part", game.ReplicatedStorage)
  45. end
  46. end
  47.  
  48. if string.find(v.TextLabel.Text, "LSI_") then
  49. game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(1)
  50. end
  51.  
  52. if string.find(v.TextLabel.Text, "LSII_") then
  53. game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(2)
  54. end
  55.  
  56. if string.find(v.TextLabel.Text, "LSIII_") then
  57. game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(3)
  58. end
  59.  
  60. if string.find(v.TextLabel.Text, "LSIV_") then
  61. game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(4)
  62. end
  63.  
  64. if string.find(v.TextLabel.Text, "LSV_") then
  65. game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(5)
  66. end
  67.  
  68. if string.find(v.TextLabel.Text, "LSVI_") then
  69. game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(6)
  70. end
  71.  
  72. if string.find(v.TextLabel.Text, "RS") then
  73. game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(game.Players.LocalPlayer.CurrentSaveSlot.Value)
  74. end
  75.  
  76. if string.find(v.TextLabel.Text, "DupeM") then
  77. game.ReplicatedStorage.Transactions.ClientToServer.Donate:InvokeServer(game.Players.LocalPlayer, game.Players.LocalPlayer.leaderstats.Money.Value, 1)
  78. end
  79.  
  80. if string.find(v.TextLabel.Text, "OBridge") then
  81. for i=1,3 do
  82. local A_1 =
  83. {
  84. ["Character"] = game:GetService("Workspace").Bridge.TollBooth0.Seranok,
  85. ["Name"] = "Seranok",
  86. ["ID"] = 7,
  87. ["Dialog"] = game:GetService("Workspace").Bridge.TollBooth0.Seranok.Dialog
  88. }
  89. local A_2 = "ConfirmPurchase"
  90. local Event = game:GetService("ReplicatedStorage").NPCDialog.PlayerChatted
  91. Event:InvokeServer(A_1, A_2)
  92. end
  93. end
  94.  
  95. if string.find(v.TextLabel.Text, "BuyQuest_") then
  96. local A_1 =
  97. {
  98. ["Character"] = game.Workspace.Region_Main["Strange Man"],
  99. ["Name"] = "Strange Man",
  100. ["ID"] = 2,
  101. ["Dialog"] = game:GetService("Workspace").Stores.WoodRUs.Thom.Dialog
  102. }
  103. local A_2 = "ConfirmPurchase"
  104. local Event = game:GetService("ReplicatedStorage").NPCDialog.PlayerChatted
  105. Event:InvokeServer(A_1, A_2)
  106. end
  107.  
  108. if string.find(v.TextLabel.Text, "GetBP") then
  109. for i,v in pairs(game.ReplicatedStorage.Purchasables.Structures.BlueprintStructures:GetChildren()) do
  110. if not game.Players.LocalPlayer.PlayerBlueprints.Blueprints:FindFirstChild(v.Name) then
  111. local clone = v:Clone()
  112. clone.Parent = game.Players.LocalPlayer.PlayerBlueprints.Blueprints
  113. end
  114. end
  115. end
  116.  
  117.  
  118.  
  119. if string.find(v.TextLabel.Text, "Fly") then
  120. if FlyS == true then
  121. FlyS = false
  122. repeat wait()
  123. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  124. local mouse = game.Players.LocalPlayer:GetMouse()
  125. repeat wait() until mouse
  126. local plr = game.Players.LocalPlayer
  127. local torso = plr.Character.Torso
  128. local flying = true
  129. local deb = true
  130. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  131. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  132. local maxspeed = 50
  133. local speed = 0
  134.  
  135. function Fly()
  136. local bg = Instance.new("BodyGyro", torso)
  137. bg.P = 9e4
  138. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  139. bg.cframe = torso.CFrame
  140. local bv = Instance.new("BodyVelocity", torso)
  141. bv.velocity = Vector3.new(0,0.1,0)
  142. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  143. repeat wait()
  144. plr.Character.Humanoid.PlatformStand = true
  145. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  146. speed = speed+.5+(speed/maxspeed)
  147. if speed > maxspeed then
  148. speed = maxspeed
  149. end
  150. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  151. speed = speed-1
  152. if speed < 0 then
  153. speed = 0
  154. end
  155. end
  156. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  157. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  158. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  159. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  160. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  161. else
  162. bv.velocity = Vector3.new(0,0.1,0)
  163. end
  164. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  165. until not flying
  166. ctrl = {f = 0, b = 0, l = 0, r = 0}
  167. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  168. speed = 0
  169. bg:Destroy()
  170. bv:Destroy()
  171. plr.Character.Humanoid.PlatformStand = false
  172. end
  173.  
  174. mouse.KeyDown:connect(function(key)
  175. if key:lower() == "f" then
  176. if flying == true then
  177. flying = false
  178. else
  179. flying = true
  180. Fly()
  181. end
  182.  
  183. elseif key:lower() == "w" then
  184. ctrl.f = 1
  185. elseif key:lower() == "s" then
  186. ctrl.b = -1
  187. elseif key:lower() == "a" then
  188. ctrl.l = -1
  189. elseif key:lower() == "d" then
  190. ctrl.r = 1
  191. end
  192. end)
  193. mouse.KeyUp:connect(function(key)
  194. if key:lower() == "w" then
  195. ctrl.f = 0
  196. elseif key:lower() == "s" then
  197. ctrl.b = 0
  198. elseif key:lower() == "a" then
  199. ctrl.l = 0
  200. elseif key:lower() == "d" then
  201. ctrl.r = 0
  202. end
  203. end)
  204. Fly()
  205. end
  206. end
  207.  
  208. end
  209. end
  210. end)
Add Comment
Please, Sign In to add comment