SHARE
TWEET

Untitled

a guest Aug 22nd, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. amount = 2 --Increase this if you use spells that require a lot of mana.
  2. --For example if your spell costs 100 mana change this to 100.
  3.  
  4. local Gui = Instance.new("ScreenGui")
  5. local Bar = Instance.new("Frame")
  6. local Button1 = Instance.new("TextLabel")
  7. local Button2 = Instance.new("TextLabel")
  8. local Button3 = Instance.new("TextLabel")
  9. local Button4 = Instance.new("TextLabel")
  10. Gui.Parent = game.CoreGui
  11.  
  12. Bar.Name = "Bar"
  13. Bar.Parent = Gui
  14. Bar.Active = true
  15. Bar.Transparency = 1
  16. Bar.Draggable = true
  17. Bar.Position = UDim2.new(0.05, 0, -0.03, 0)
  18. Bar.Selectable = true
  19. Bar.Size = UDim2.new(0, 300, 0, 30)
  20.  
  21. Button1.Name = "TextButton1"
  22. Button1.Parent = Bar
  23. Button1.BackgroundColor3 = Color3.new(0.6, 0.2, 0.2)
  24. Button1.Position = UDim2.new(0, 0, -0.18, 0)
  25. Button1.Size = UDim2.new(0, 148, 0, 33)
  26. Button1.Font = Enum.Font.SourceSans
  27. Button1.Text = "Flying-Off (V)"
  28. Button1.TextColor3 = Color3.new(1, 1, 1)
  29. Button1.TextSize = 30
  30.                                              
  31. Button2.Name = "TextButton2"
  32. Button2.Parent = Bar
  33. Button2.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  34. Button2.Position = UDim2.new(0.5, 0, -0.18, 0)
  35. Button2.Size = UDim2.new(0, 150, 0, 33)
  36. Button2.Font = Enum.Font.SourceSans
  37. Button2.Text = "X-SavePos"
  38. Button2.TextColor3 = Color3.new(1, 1, 1)
  39. Button2.TextSize = 30
  40.  
  41. Button3.Name = "TextButton3"
  42. Button3.Parent = Bar
  43. Button3.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  44. Button3.Position = UDim2.new(1, 0, -0.18, 0)
  45. Button3.Size = UDim2.new(0, 150, 0, 33)
  46. Button3.Font = Enum.Font.SourceSans
  47. Button3.Text = "C-TpToPos"
  48. Button3.TextColor3 = Color3.new(1, 1, 1)
  49. Button3.TextSize = 30
  50.  
  51. Button4.Name = "TextButton4"
  52. Button4.Parent = Bar
  53. Button4.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  54. Button4.Position = UDim2.new(1.5, 0, -0.18, 0)
  55. Button4.Size = UDim2.new(0, 150, 0, 33)
  56. Button4.Font = Enum.Font.SourceSans
  57. Button4.Text = "R-TpToMouse"
  58. Button4.TextColor3 = Color3.new(1, 1, 1)
  59. Button4.TextSize = 30
  60.  
  61. flying = false
  62. speedfly = 2
  63. local Imput = game:GetService("UserInputService")
  64. local Plr = game.Players.LocalPlayer
  65. local Mouse = Plr:GetMouse()
  66.  
  67. local T = Plr.Character.HumanoidRootPart
  68. local CONTROL = {F = 0, B = 0, L = 0, R = 0}
  69. local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  70. local SPEED = 1
  71.  
  72. local function fly()
  73. if flying == true then
  74. local BG = Instance.new('BodyGyro', Plr.Character.HumanoidRootPart)
  75. local BV = Instance.new('BodyVelocity', Plr.Character.HumanoidRootPart)
  76. BG.P = 9e4
  77. BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  78. BG.cframe = Plr.Character.HumanoidRootPart.CFrame
  79. BV.velocity = Vector3.new(0, 0, 0)
  80. BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  81. spawn(function()
  82. repeat wait()
  83. Plr.Character.Humanoid.PlatformStand = true
  84. if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
  85. SPEED = 50
  86. elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
  87. SPEED = 0
  88. end
  89. if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
  90. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  91. lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
  92. elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
  93. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  94. else
  95. BV.velocity = Vector3.new(0, 0, 0)
  96. end
  97. BG.cframe = workspace.CurrentCamera.CoordinateFrame
  98. until not flying
  99. CONTROL = {F = 0, B = 0, L = 0, R = 0}
  100. lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  101. SPEED = 0
  102. BG:destroy()
  103. BV:destroy()
  104. Plr.Character.Humanoid.PlatformStand = false
  105. end)
  106. end
  107. end
  108.  
  109. Mouse.KeyDown:connect(function(KEY)
  110. if KEY:lower() == 'w' then
  111. CONTROL.F = speedfly
  112. elseif KEY:lower() == 's' then
  113. CONTROL.B = -speedfly
  114. elseif KEY:lower() == 'a' then
  115. CONTROL.L = -speedfly
  116. elseif KEY:lower() == 'd' then
  117. CONTROL.R = speedfly
  118. end
  119. end)
  120. Mouse.KeyUp:connect(function(KEY)
  121. if KEY:lower() == 'w' then
  122. CONTROL.F = 0
  123. elseif KEY:lower() == 's' then
  124. CONTROL.B = 0
  125. elseif KEY:lower() == 'a' then
  126. CONTROL.L = 0
  127. elseif KEY:lower() == 'd' then
  128. CONTROL.R = 0
  129. end
  130. end)
  131. fly()
  132.  
  133.  
  134. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  135. if key == "v" then
  136. if flying == true then flying = false print("Disabled Flying")
  137. fly()
  138. Button1.Text = "Flying-Off (V)"
  139. Button1.BackgroundColor3 = Color3.new(0.6, 0.2, 0.2)
  140. elseif
  141. flying == false then flying = true print("Enabled Flying")
  142. fly()
  143. Button1.Text = "Flying-on (V)"
  144. Button1.BackgroundColor3 = Color3.new(0.2, 0.6, 0.2)
  145. end
  146. end
  147. end)
  148.  
  149. Plr.CharacterAdded:Connect(function(character)
  150. flying = false
  151. Plr.Character.Humanoid.PlatformStand = false
  152. end)
  153.  
  154. function To(position)
  155. local Chr = Plr.Character
  156. if Chr ~= nil then
  157. Chr:MoveTo(position)
  158. end
  159. end
  160.  
  161. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  162. if key == "r" then
  163. To(Mouse.Hit.p)
  164. print("TeleportedTo " .. tostring(Mouse.Hit.p))
  165. Button4.BackgroundColor3 = Color3.new(0.2, 0.6, 0.2)
  166. wait(0.1)
  167. Button4.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  168. end
  169. end)
  170.  
  171. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  172. if key == "x" then
  173. savedpos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  174. stringpos = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  175. print("PositionSaved " .. tostring(stringpos))
  176. Button2.BackgroundColor3 = Color3.new(0.2, 0.6, 0.2)
  177. wait(0.1)
  178. Button2.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  179. end
  180. end)
  181.  
  182. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  183. if key == "c" then
  184. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = savedpos
  185. print("TeleportedTo " .. tostring(stringpos))
  186. Button3.BackgroundColor3 = Color3.new(0.2, 0.6, 0.2)
  187. wait(0.1)
  188. Button3.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  189. end
  190. end)
  191.  
  192. game:GetService('RunService').Stepped:connect(function()
  193. for _,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  194. if v.ClassName == "Part"
  195. or v.ClassName == "MeshPart" then
  196. v.CanCollide = false
  197. end
  198. end
  199. end)
  200.  
  201. while wait(0) do
  202. Level = game.Players.LocalPlayer.Level.Value
  203. if Level == "Forest" then
  204. Area = CFrame.new(918.87, 4.74, -254.15)
  205. end
  206. if Level == "City" then
  207. Area = CFrame.new(-582.58, 67.02, 778.98)
  208. end
  209. if Level == "Wilderness" then
  210. Area = CFrame.new(-582.58, 67.02, 778.98)
  211. end
  212. if Level == "Beach" then
  213. Area = CFrame.new(-2142.82, 28.79, 258.85)
  214. end
  215. if Level == "Sea" then
  216. Area = CFrame.new(-2142.82, 28.79, 258.85)
  217. end
  218. if Level == "Magma" then
  219. Area = CFrame.new(-1029.66, 39.64, -1811.14)
  220. end
  221. Level = game.Players.LocalPlayer.Level.Value
  222. if tonumber(game.Players.LocalPlayer.Mana.Value) < amount then
  223. if Level ~= "Boss" then
  224. pos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  225. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Area
  226. wait(0.4)
  227. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  228. end
  229. end
  230. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  231. if tonumber(game.Players.LocalPlayer.Character.Humanoid.Health) == 0 then
  232. if Level ~= "Boss" then
  233. pos2 = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  234. wait(7)
  235. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos2
  236. end
  237. end
  238. end
  239. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top