Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.23 KB | None | 0 0
  1. --Start
  2. local open = Instance.new("TextButton")
  3. local screengui = Instance.new("ScreenGui")
  4. local frame = Instance.new("Frame")
  5. local scroll = Instance.new("ScrollingFrame")
  6. local input = Instance.new("TextBox")
  7. local exe = Instance.new("TextButton")
  8. local clr = Instance.new("TextButton")
  9. local hub = Instance.new("TextButton")
  10. local hubframe = Instance.new("Frame")
  11. local closehub = Instance.new("TextButton")
  12. local script1 = Instance.new("TextButton")
  13. local script2 = Instance.new("TextButton")
  14.  
  15. --Propetiss
  16. screengui.Parent = game.Players.LocalPlayer.PlayerGui
  17. screengui.Name = "ScriptHub"
  18.  
  19. open.Parent = screengui
  20. open.Position = UDim2.new(0, 0, 0, 500)
  21. open.BackgroundColor3 = Color3.new(255, 0, 0)
  22. open.BorderSizePixel = 10
  23. open.Size = UDim2.new(0, 200, 0, 50)
  24. open.Text = "Open"
  25. open.Name = "Open/Close"
  26. open.MouseButton1Click:connect(function()
  27. if frame.Visible == false then
  28. frame.Visible = true
  29. else
  30. frame.Visible = false
  31. end
  32. end)
  33.  
  34. frame.Parent = screengui
  35. frame.Position = UDim2.new(0, 450, 0, 250)
  36. frame.BackgroundColor3 = Color3.new(255, 255, 255)
  37. frame.BorderSizePixel = 10
  38. frame.Size = UDim2.new(0, 450, 0, 350)
  39. frame.Draggable = true
  40. frame.Active = true
  41. frame.Selectable = true
  42. frame.Name = "ScriptFrame"
  43. frame.Visible = false
  44.  
  45. scroll.Parent = frame
  46. scroll.Position = UDim2.new(0, 25, 0, 25)
  47. scroll.Size = UDim2.new(0, 400, 0, 250)
  48. scroll.CanvasSize = UDim2.new(0, 0 , 0, 999999999)
  49. scroll.BackgroundColor3 = Color3.new(255, 255, 255)
  50. scroll.Name = "Scroll"
  51.  
  52. input.Parent = scroll
  53. input.Position = UDim2.new(0, 0, 0, -2)
  54. input.Size = UDim2.new(0, 389, 0, 999999999)
  55. input.BackgroundColor3 = Color3.new(255, 255, 255)
  56. input.ClearTextOnFocus = false
  57. input.MultiLine = true
  58. input.TextXAlignment = Enum.TextXAlignment.Left
  59. input.TextYAlignment = Enum.TextYAlignment.Top
  60. input.Text = "--Script Here--"
  61.  
  62. exe.Parent = frame
  63. exe.Position = UDim2.new(0, 15, 0, 295)
  64. exe.Size = UDim2.new(0, 190, 0, 40)
  65. exe.BackgroundColor3 = Color3.new(255, 0, 0)
  66. exe.BorderSizePixel = 6
  67. exe.TextSize = 30
  68. exe.Text = "Execute"
  69. exe.Name = "Execute"
  70. exe.MouseButton1Click:connect(function()
  71. loadstring(input.Text)()
  72. end)
  73.  
  74. clr.Parent = frame
  75. clr.Position = UDim2.new(0, 245, 0, 295)
  76. clr.Size = UDim2.new(0, 190, 0, 40)
  77. clr.BackgroundColor3 = Color3.new(255, 0, 0)
  78. clr.BorderSizePixel = 6
  79. clr.Text = "Clear"
  80. clr.TextSize = 30
  81. clr.Name = "Clear"
  82. clr.MouseButton1Click:connect(function()
  83. input.Text = ""
  84. end)
  85.  
  86. hub.Parent = frame
  87. hub.Position = UDim2.new(0, 180, 0, 0)
  88. hub.Size = UDim2.new(0, 100, 0, 20)
  89. hub.Text = "Scripts"
  90. hub.Name = "Hub"
  91. hub.MouseButton1Click:connect(function()
  92. hubframe.Visible = true
  93. end)
  94.  
  95. hubframe.Parent = hub
  96. hubframe.Position = UDim2.new(0, -180, 0, 0)
  97. hubframe.Size = UDim2.new(0, 450, 0, 350)
  98. hubframe.BackgroundColor3 = Color3.new(0, 0, 0, 0)
  99. hubframe.BackgroundTransparency = 0.4
  100. hubframe.Name = "hubframe"
  101. hubframe.Visible = false
  102.  
  103. closehub.Parent = hubframe
  104. closehub.Position = UDim2.new(0, 425, 0, 20)
  105. closehub.Text = "X"
  106. closehub.TextSize = 30
  107. closehub.BackgroundTransparency = 0.3
  108. closehub.Name = "CloseHub"
  109.  
  110. script1.Parent = hubframe
  111. script1.Position = UDim2.new(0, 10, 0, 20)
  112. script1.Size = UDim2.new(0, 100, 0, 40)
  113. script1.Text = "Mario"
  114. script1.TextSize = 10
  115. script1.BackgroundTransparency = 0.3
  116. script1.Name = "Mario"
  117.  
  118. script1.Parent = hubframe
  119. script1.Position = UDim2.new(0, 10, 0, 80)
  120. script1.Size = UDim2.new(0, 100, 0, 40)
  121. script1.Text = "Light Cubes"
  122. script1.TextSize = 10
  123. script1.BackgroundTransparency = 0.3
  124. script1.Name = "Light Cubes"
  125.  
  126. --Scripts
  127. script1.MouseButton1Click:connect(function()
  128. --Script made by Pedrorb03. Enjoy it ;)
  129.  
  130. --Set Up
  131.  
  132. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 1
  133. game.Players.LocalPlayer.Character.Humanoid.Health = 1
  134.  
  135.  
  136.  
  137.  
  138. for _,anim in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
  139. anim:Stop()
  140. end
  141. game.Players.LocalPlayer.Character.Animate:remove()
  142. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  143. if part.ClassName == "Body Colors" or part.ClassName == "Accessory" or part.ClassName == "Pants" or part.ClassName == "Shirt" or part.ClassName == "Shirt Graphic" then
  144. part:remove()
  145. end
  146. end
  147. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  148. if part:IsA("BasePart") then
  149. part.BrickColor = BrickColor.new("Pastel brown")
  150. end
  151. end
  152. shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character) shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
  153. pants = Instance.new("Pants",game.Players.LocalPlayer.Character) pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
  154. game.Players.LocalPlayer.Character.Head.Mesh.Scale = Vector3.new(0.45,0.45,0.45)
  155. game.Players.LocalPlayer.Character.Head.Mesh.Offset = Vector3.new(0,0.3,-0.1)
  156. game.Players.LocalPlayer.Character.Head.face:remove()
  157. game.Players.LocalPlayer.Character.Head.Mesh.MeshId = "rbxassetid://494265290"
  158. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
  159.  
  160. game.Players.LocalPlayer.Character.Head.Jumping.SoundId = "rbxassetid://158309736"
  161. sound = nil
  162.  
  163. while sound == nil do
  164. wait()
  165. sound = Instance.new("Sound")
  166. if sound ~= nil then
  167. break
  168. end
  169. end
  170.  
  171. levelMusic = sound:Clone()
  172. levelMusic.SoundId = "rbxassetid://232553386"
  173. levelMusic.Looped = true
  174. levelMusic.Parent = game.Players.LocalPlayer.Character
  175. levelMusic.Volume = 0.3
  176. levelMusic:Play()
  177. takeCooldown = false
  178.  
  179. lifes = 2
  180.  
  181. lastLife = lifes
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 65
  193. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  194. --Map Set Up
  195. if not game.Workspace:FindFirstChild("Baseplate") then
  196. baseplate = Instance.new("Part") baseplate.Anchored = true baseplate.CFrame = CFrame.new(0,-10,0) baseplate.Name = "Baseplate" baseplate.Locked = true baseplate.Parent = game.Workspace
  197. end
  198. if game.Workspace:FindFirstChild("Baseplate") then
  199. game.Workspace.Baseplate.Size = Vector3.new(2048,20,2048)
  200. GroundTexture = Instance.new("Texture",game.Workspace.Baseplate) GroundTexture.Texture = "rbxassetid://1089643294" GroundTexture.StudsPerTileU = 3 GroundTexture.StudsPerTileV = 3
  201. GroundTexture.Face = "Top"
  202. game.Workspace.Baseplate.CFrame = CFrame.new(0,-9.5,0)
  203. end
  204.  
  205. sky = Instance.new("Sky",game.Lighting)
  206. sky.SkyboxBk = "rbxassetid://1089701835"
  207. sky.SkyboxFt = "rbxassetid://1089701835"
  208. sky.SkyboxLf = "rbxassetid://1089701835"
  209. sky.SkyboxRt = "rbxassetid://1089701835"
  210. sky.SkyboxUp = "rbxassetid://1089702222"
  211. sky.SkyboxDn = "rbxassetid://1089702222"
  212.  
  213. sky.SunTextureId = "rbxassetid://1089711654"
  214. sky.MoonTextureId = "rbxassetid://1089711897"
  215.  
  216. sky.SunAngularSize = 10
  217. sky.MoonAngularSize = 5
  218.  
  219. sky.StarCount = 0
  220.  
  221. color = Instance.new("ColorCorrectionEffect",game.Lighting) color.Saturation = 1 color.Contrast = 1
  222.  
  223.  
  224. brick = Instance.new("Part") brick.Anchored = true brick.Size = Vector3.new(3.2,3.2,3.2)
  225. mesh = Instance.new("SpecialMesh",brick) mesh.MeshId = "rbxassetid://1089547491" mesh.TextureId = "rbxassetid://1089552092"
  226. bricks = {}
  227. for _=1,math.random(200,350) do
  228. local part = brick:Clone()
  229. part.CFrame = CFrame.new(math.random(-102400,102400)/100,11,math.random(-102400,102400)/100)
  230. part.Parent = game.Workspace
  231. table.insert(bricks,part)
  232. end
  233.  
  234.  
  235. block = Instance.new("Part") block.Anchored = true block.Size = Vector3.new(3,3,3)
  236. mesh = Instance.new("SpecialMesh",block) mesh.MeshId = "rbxassetid://1089565562" mesh.TextureId = "rbxassetid://1089562101"
  237. blocks = {}
  238. for _=1,math.random(100,150) do
  239. local part = block:Clone()
  240. part.CFrame = CFrame.new(math.random(-102400,102400)/100,11,math.random(-102400,102400)/100)
  241. part.Parent = game.Workspace
  242. table.insert(blocks,part)
  243. end
  244.  
  245.  
  246. coin = Instance.new("Part") coin.Anchored = true coin.Size = Vector3.new(2,2,2) coin.CanCollide = false
  247. mesh = Instance.new("SpecialMesh",coin) mesh.MeshId = "rbxassetid://652133659" mesh.Scale = Vector3.new(0.005, 0.005, 0.005)
  248. coin.Color = Color3.fromRGB(255,245,0)
  249. coins = {}
  250. for _=1,math.random(300,350) do
  251. local part = coin:Clone()
  252. part.CFrame = CFrame.new(math.random(-102400,102400)/100,2,math.random(-102400,102400)/100)
  253. part.Parent = game.Workspace
  254. table.insert(coins,part)
  255. end
  256.  
  257. gui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  258.  
  259. coinGui = Instance.new("TextLabel",gui) coinGui.BackgroundTransparency = 1 coinGui.TextScaled = true coinGui.Font = Enum.Font.Arcade coinGui.TextColor3 = Color3.fromRGB(255,255,255)
  260. coinGui.Size = UDim2.new(0.15,0,0.075,0)
  261.  
  262. mushroom = Instance.new("Part") mushroom.Anchored = false mushroom.Size = Vector3.new(2.5,2.5,2.5)
  263. mesh = Instance.new("SpecialMesh",mushroom) mesh.MeshId = "rbxassetid://843546054" mesh.TextureId = "rbxassetid://843546065" mesh.Scale = Vector3.new(0.05, 0.05, 0.05)
  264. mushrooms = {}
  265.  
  266. flower = Instance.new("Part") flower.Anchored = true flower.Size = Vector3.new(2.5,2.5,2.5)
  267. mesh = Instance.new("SpecialMesh",flower) mesh.MeshId = "rbxassetid://1091549739" mesh.TextureId = "rbxassetid://1091549771" mesh.Scale = Vector3.new(0.15, 0.15, 0.15)
  268. flowers = {}
  269.  
  270. star = Instance.new("Part") star.Anchored = false star.Size = Vector3.new(2.5,2.5,2.5) star.CanCollide = false
  271. mesh = Instance.new("SpecialMesh",star) mesh.MeshId = "rbxassetid://491129029" mesh.TextureId = "rbxassetid://1092055458" mesh.Scale = Vector3.new(0.075, 0.075, 0.075)
  272. stars = {}
  273.  
  274. fire = Instance.new("Part") fire.Anchored = false flower.Size = Vector3.new(1.5,1.5,1.5) fire.Transparency = 1
  275. meshhh = Instance.new("BillboardGui",fire) meshhh.LightInfluence = 0 meshhh.Size = UDim2.new(1.5,0,1.5,0)
  276. imagee = Instance.new("ImageLabel",meshhh) imagee.BackgroundTransparency = 1 imagee.Size = UDim2.new(1,0,1,0) imagee.Image = "rbxassetid://1091847477"
  277.  
  278. fires = {}
  279.  
  280.  
  281.  
  282.  
  283.  
  284. CoinsVal = 0
  285.  
  286.  
  287. --Animation Functions
  288.  
  289. walking = false
  290. stopped = true
  291.  
  292. jumping = false
  293. function walk()
  294. if lifes > 1 then
  295. walking = true
  296. for i=1,1 do
  297. wait(0.1)
  298.  
  299. if stopped == false and jumping == false then
  300. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  301. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  302. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
  303. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
  304.  
  305. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(30))
  306. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  307. else
  308. break
  309. end
  310.  
  311. wait(0.1)
  312. if stopped == false and jumping == false then
  313. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  314. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  315.  
  316. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
  317. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
  318.  
  319. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  320. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(30))
  321. else
  322. break
  323. end
  324. end
  325. walking = false
  326. else
  327. walking = true
  328. for i=1,1 do
  329. wait(0.1)
  330.  
  331. if stopped == false and jumping == false then
  332. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  333. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  334. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
  335. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
  336.  
  337. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,-0.1,0.25)*CFrame.Angles(0,math.rad(90),math.rad(30))
  338. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,-0.1,-0.25)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  339. else
  340. break
  341. end
  342.  
  343. wait(0.1)
  344. if stopped == false and jumping == false then
  345. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  346. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  347.  
  348. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
  349. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
  350.  
  351. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,-0.1,-0.25)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  352. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,-0.1,0.25)*CFrame.Angles(0,math.rad(90),math.rad(30))
  353. else
  354. break
  355. end
  356. end
  357. walking = false
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365. end
  366.  
  367.  
  368. end
  369.  
  370. function walkStop()
  371. if lifes > 1 then
  372. for i=1,1 do
  373. if jumping == false and stopped == true and walking == false then
  374. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,math.rad(-90))
  375. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,1,-0.5)*CFrame.Angles(math.rad(90),0,math.rad(-30))
  376.  
  377. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  378. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(0,math.rad(90),math.rad(0))
  379.  
  380. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-250))
  381. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-120))
  382. else
  383. break
  384. end
  385. wait(0.25)
  386. if jumping == false and stopped == true and walking == false then
  387.  
  388. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  389. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  390.  
  391. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  392. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  393.  
  394. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  395. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  396. else
  397. break
  398. end
  399. end
  400. else
  401.  
  402. for i=1,1 do
  403.  
  404.  
  405. if jumping == false and stopped == true and walking == false then
  406.  
  407. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-0.4,0.25,-0.75)*CFrame.Angles(0,0,math.rad(-90))
  408. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.5,0.75,-0.1)*CFrame.Angles(math.rad(90),0,math.rad(-30))
  409.  
  410. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  411. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,0.5,-0.5)*CFrame.Angles(0,math.rad(90),math.rad(0))
  412.  
  413. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-250))
  414. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-120))
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421. else
  422. break
  423. end
  424. wait(0.25)
  425. if jumping == false and stopped == true and walking == false then
  426.  
  427.  
  428. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  429. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  430.  
  431. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  432. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  433.  
  434. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  435. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  436. else
  437. break
  438. end
  439.  
  440. end
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454. end
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477. end
  478.  
  479. function jump()
  480. if lifes > 1 then
  481. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  482. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(150))
  483.  
  484. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,0,-0.5)*CFrame.Angles(0,math.rad(90),math.rad(0))
  485. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  486.  
  487. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  488. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  489. else
  490. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  491. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(150))
  492.  
  493. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  494. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,0.5,-0.5)*CFrame.Angles(0,math.rad(90),math.rad(0))
  495.  
  496. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  497. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  498. end
  499. end
  500.  
  501. function land()
  502. if lifes > 1 then
  503. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  504. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  505.  
  506. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  507. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  508.  
  509. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  510. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  511. else
  512. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  513. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  514.  
  515. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  516. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  517.  
  518. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  519. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  520. end
  521. end
  522.  
  523. growing = false
  524.  
  525.  
  526. function degrow()
  527.  
  528. for i=1,5 do
  529. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  530. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  531. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  532. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  533. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  534. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  535.  
  536. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size/2
  537. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size/2
  538. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size/2
  539. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size/2
  540. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size/2
  541. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size/2
  542.  
  543. rs.Parent = game.Players.LocalPlayer.Character.Torso
  544. ls.Parent = game.Players.LocalPlayer.Character.Torso
  545. rh.Parent = game.Players.LocalPlayer.Character.Torso
  546. lh.Parent = game.Players.LocalPlayer.Character.Torso
  547. n.Parent = game.Players.LocalPlayer.Character.Torso
  548. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  549. wait(.1)
  550. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  551. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  552. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  553. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  554. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  555. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  556.  
  557. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size*2
  558. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size*2
  559. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size*2
  560. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size*2
  561. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size*2
  562. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size*2
  563.  
  564. rs.Parent = game.Players.LocalPlayer.Character.Torso
  565. ls.Parent = game.Players.LocalPlayer.Character.Torso
  566. rh.Parent = game.Players.LocalPlayer.Character.Torso
  567. lh.Parent = game.Players.LocalPlayer.Character.Torso
  568. n.Parent = game.Players.LocalPlayer.Character.Torso
  569. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  570. wait(.1)
  571. end
  572. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  573. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  574. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  575. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  576. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  577. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  578.  
  579. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size/2
  580. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size/2
  581. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size/2
  582. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size/2
  583. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size/2
  584. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size/2
  585.  
  586. rs.Parent = game.Players.LocalPlayer.Character.Torso
  587. ls.Parent = game.Players.LocalPlayer.Character.Torso
  588. rh.Parent = game.Players.LocalPlayer.Character.Torso
  589. lh.Parent = game.Players.LocalPlayer.Character.Torso
  590. n.Parent = game.Players.LocalPlayer.Character.Torso
  591. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  592.  
  593. end
  594. function grow()
  595.  
  596. for i=1,5 do
  597.  
  598. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  599. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  600. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  601. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  602. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  603. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  604.  
  605. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size*2
  606. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size*2
  607. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size*2
  608. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size*2
  609. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size*2
  610. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size*2
  611.  
  612. rs.Parent = game.Players.LocalPlayer.Character.Torso
  613. ls.Parent = game.Players.LocalPlayer.Character.Torso
  614. rh.Parent = game.Players.LocalPlayer.Character.Torso
  615. lh.Parent = game.Players.LocalPlayer.Character.Torso
  616. n.Parent = game.Players.LocalPlayer.Character.Torso
  617. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  618. wait(.1)
  619. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  620. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  621. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  622. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  623. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  624. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  625.  
  626. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size/2
  627. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size/2
  628. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size/2
  629. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size/2
  630. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size/2
  631. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size/2
  632.  
  633. rs.Parent = game.Players.LocalPlayer.Character.Torso
  634. ls.Parent = game.Players.LocalPlayer.Character.Torso
  635. rh.Parent = game.Players.LocalPlayer.Character.Torso
  636. lh.Parent = game.Players.LocalPlayer.Character.Torso
  637. n.Parent = game.Players.LocalPlayer.Character.Torso
  638. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  639. wait(.1)
  640. end
  641.  
  642. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  643. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  644. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  645. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  646. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  647. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  648.  
  649. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size*2
  650. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size*2
  651. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size*2
  652. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size*2
  653. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size*2
  654. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size*2
  655.  
  656. rs.Parent = game.Players.LocalPlayer.Character.Torso
  657. ls.Parent = game.Players.LocalPlayer.Character.Torso
  658. rh.Parent = game.Players.LocalPlayer.Character.Torso
  659. lh.Parent = game.Players.LocalPlayer.Character.Torso
  660. n.Parent = game.Players.LocalPlayer.Character.Torso
  661.  
  662. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  663.  
  664. end
  665.  
  666. function firegrow()
  667.  
  668.  
  669. for i=1,5 do
  670. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821700"
  671. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821953"
  672. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=1091724768"
  673. wait(.1)
  674. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
  675. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
  676. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
  677. wait(.1)
  678. end
  679. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821700"
  680. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821953"
  681. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=1091724768"
  682.  
  683. end
  684. function defiregrow()
  685.  
  686.  
  687. for i=1,5 do
  688. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
  689. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
  690. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
  691. wait(.1)
  692.  
  693. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821700"
  694. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821953"
  695. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=1091724768"
  696. wait(.1)
  697. end
  698. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
  699. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
  700. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
  701.  
  702. end
  703.  
  704. function fireThrow()
  705.  
  706.  
  707. local soundos = sound:Clone()
  708. soundos.SoundId = "rbxassetid://182755400"
  709. soundos.Parent = game.Players.LocalPlayer.Character.Torso
  710. soundos:Play()
  711. game:GetService("Debris"):AddItem(soundos,2)
  712. local fie = fire:Clone()
  713. fie.CanCollide = false
  714. fie.CFrame = CFrame.new(game.Players.LocalPlayer.Character["Right Arm"].Position,game.Players.LocalPlayer.Character["Right Arm"].Position+game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*3)
  715. fie.Parent = game.Workspace
  716. table.insert(fires,fie)
  717. fie.Velocity = fie.CFrame.lookVector*30
  718. game:GetService("Debris"):AddItem(fie,3)
  719. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(90))
  720. wait(.1)
  721. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  722.  
  723.  
  724.  
  725.  
  726. end
  727.  
  728.  
  729. --Main
  730. game.Players.LocalPlayer.Character["Right Leg"].Touched:connect(function(hit)
  731. if hit.Parent then
  732. if hit.Parent ~= game.Players.LocalPlayer.Character then
  733.  
  734. if hit.Parent:FindFirstChild("Humanoid") then
  735. if hit.Parent.Humanoid.Health > 0 then
  736. hit.Parent.Humanoid.Health = 0
  737. hit.CanCollide = true
  738. hit.Size = Vector3.new(hit.Size.X,0.05,hit.Size.Z)
  739. game.Players.LocalPlayer.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  740. local sond = sound:Clone()
  741. sond.SoundId = "rbxassetid://140439666"
  742. sond.Parent = game.Players.LocalPlayer.Character.Torso
  743. sond:Play()
  744. game:GetService("Debris"):AddItem(sond,2)
  745. end
  746. end
  747. end
  748. end
  749. end)
  750. game.Players.LocalPlayer.Character.Head.Touched:connect(function(part)
  751. local did = false
  752. local num = 0
  753. for number,part2 in pairs(bricks) do
  754. if part2 == part then
  755. did = true
  756. num = number
  757. end
  758. end
  759. if did == true then
  760.  
  761. part:remove()
  762.  
  763. local coinSound = sound:Clone()
  764. coinSound.SoundId = "rbxassetid://317619936"
  765. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  766. coinSound:Play()
  767. game:GetService("Debris"):AddItem(coinSound,3)
  768. table.remove(bricks,num)
  769.  
  770. end
  771.  
  772. local did = false
  773. local num = 0
  774. for number,part2 in pairs(blocks) do
  775. if part2 == part then
  776. did = true
  777. num = number
  778. end
  779. end
  780. if did == true then
  781.  
  782. part.Mesh.MeshId = "rbxassetid://1089569418"
  783. part.Mesh.TextureId = "rbxassetid://1089568636"
  784.  
  785. local coinSound = sound:Clone()
  786. coinSound.SoundId = "rbxassetid://317619936"
  787. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  788. coinSound:Play()
  789. game:GetService("Debris"):AddItem(coinSound,3)
  790. table.remove(blocks,num)
  791. local get = math.random(1,2)
  792. if get == 1 then
  793. local coinHolo = coin:Clone()
  794. coinHolo.Parent = part
  795. coinHolo.CFrame = part.CFrame
  796. CoinsVal = CoinsVal+10
  797. local coinSound = sound:Clone()
  798. coinSound.SoundId = "rbxassetid://138702491"
  799. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  800. coinSound:Play()
  801. game:GetService("Debris"):AddItem(coinSound,3)
  802.  
  803. for i=1,10 do
  804. wait()
  805. coinHolo.CFrame = coinHolo.CFrame+Vector3.new(0,0.25,0)
  806. end
  807. wait(1)
  808. coinHolo:remove()
  809. end
  810. if get == 2 then
  811. local chance = math.random(1,3)
  812.  
  813. if chance > 1 then
  814. if lifes > 1 then
  815. local flow = flower:Clone()
  816. flow.Parent = game.Workspace
  817. flow.CFrame = part.CFrame
  818. table.insert(flowers,flow)
  819. for i=1,10 do
  820. wait()
  821. flow.CFrame = flow.CFrame+Vector3.new(0,0.25,0)
  822. end
  823.  
  824. end
  825. if lifes == 1 then
  826. local mush = mushroom:Clone()
  827. mush.CFrame = part.CFrame+Vector3.new(0,2,0)
  828. mush.Parent = game.Workspace
  829.  
  830. table.insert(mushrooms,mush)
  831. end
  832. end
  833. if chance == 1 then
  834. local sta = star:Clone()
  835. sta.CFrame = part.CFrame+Vector3.new(0,2,0)
  836. sta.Parent = game.Workspace
  837.  
  838. table.insert(stars,sta)
  839. end
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847. end
  848. end
  849.  
  850.  
  851. end)
  852. starA = false
  853. cooldown = false
  854. colorz = 0
  855. starTimer = 0
  856. game:GetService("UserInputService").InputBegan:connect(function(key)
  857. if key.KeyCode == Enum.KeyCode.C then
  858. if color then
  859. color.Enabled = not color.Enabled
  860. end
  861. end
  862. if key.KeyCode == Enum.KeyCode.Z then
  863. if lifes > 1 then
  864. local flow = flower:Clone()
  865. flow.Parent = game.Workspace
  866. flow.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  867. table.insert(flowers,flow)
  868.  
  869. end
  870. if lifes == 1 then
  871. local mush = mushroom:Clone()
  872. mush.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  873. mush.Parent = game.Workspace
  874.  
  875. table.insert(mushrooms,mush)
  876. end
  877. end
  878. if key.KeyCode == Enum.KeyCode.X then
  879.  
  880.  
  881. local sta = star:Clone()
  882. sta.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  883. sta.Parent = game.Workspace
  884.  
  885. table.insert(stars,sta)
  886.  
  887. end
  888.  
  889. if key.KeyCode == Enum.KeyCode.E then
  890. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  891. if lifes == 3 then
  892. if cooldown == false then
  893. cooldown = true
  894. fireThrow()
  895. cooldown = false
  896. end
  897. end
  898.  
  899.  
  900. end
  901. end)
  902. game:GetService("UserInputService").InputEnded:connect(function(key)
  903. if key.KeyCode == Enum.KeyCode.E then
  904. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  905. end
  906. end)
  907. game:GetService("RunService").RenderStepped:connect(function()
  908.  
  909. starTimer = starTimer+1
  910. if starTimer > 1 then
  911. starTimer = 0
  912. colorz = colorz+1
  913. if colorz > 5 then
  914. colorz = 0
  915. end
  916. if starA == true then
  917. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  918. if part:IsA("BasePart") then
  919. if part.Name == "HumanoidRootPart" then
  920. for _,child in pairs(game.Workspace:GetChildren()) do
  921. if child ~= game.Players.LocalPlayer.Character then
  922. if child:FindFirstChild("Humanoid") then
  923. for _,parto in pairs(child:GetChildren()) do
  924. if parto:IsA("BasePart") then
  925. if (parto.Position-part.Position).magnitude <= 5 then
  926. parto:remove()
  927. end
  928. end
  929. end
  930. end
  931. end
  932. end
  933. end
  934.  
  935.  
  936. local clon = part:Clone()
  937. for _,child in pairs(clon:GetChildren()) do
  938. if child.ClassName ~= "SpecialMesh" then
  939. child:remove()
  940. else
  941. child.TextureId = ""
  942. end
  943. end
  944. clon.Anchored = true
  945. if colorz == 0 then
  946. clon.Color = Color3.fromRGB(255,0,0)
  947. end
  948. if colorz == 1 then
  949. clon.Color = Color3.fromRGB(255,255,0)
  950. end
  951. if colorz == 2 then
  952. clon.Color = Color3.fromRGB(0,255,0)
  953. end
  954. if colorz == 3 then
  955. clon.Color = Color3.fromRGB(0,255,255)
  956. end
  957. if colorz == 4 then
  958. clon.Color = Color3.fromRGB(0,0,255)
  959. end
  960. if colorz == 5 then
  961. clon.Color = Color3.fromRGB(255,0,255)
  962. end
  963. game:GetService("Debris"):AddItem(clon,0.5)
  964. clon.Transparency = 0
  965. clon.Anchored = true
  966. clon.CanCollide = false
  967. clon.Material = Enum.Material.SmoothPlastic
  968. clon.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  969. clon.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  970. clon.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  971. clon.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  972. clon.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  973. clon.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  974.  
  975.  
  976.  
  977.  
  978. clon.Parent = game.Workspace
  979. end
  980.  
  981.  
  982. end
  983.  
  984.  
  985.  
  986.  
  987.  
  988. end
  989. end
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998. coinGui.Text = "Total Score: "..CoinsVal
  999. for number,part in pairs(fires) do
  1000. if part == nil or not part:FindFirstChild("BillboardGui") then
  1001. part:remove()
  1002. table.remove(fires,number)
  1003. break
  1004. end
  1005.  
  1006. part.BillboardGui.ImageLabel.Rotation = part.BillboardGui.ImageLabel.Rotation+7.5
  1007. part.Touched:connect(function(hit)
  1008. if hit.Parent ~= game.Players.LocalPlayer.Character then
  1009. if hit.Parent:FindFirstChild("Humanoid") then
  1010. hit.Parent.Humanoid.Health = 0
  1011. part:remove()
  1012. end
  1013. end
  1014. part.Velocity = part.CFrame.lookVector*30 +Vector3.new(0,50,0)
  1015. end)
  1016.  
  1017. end
  1018. for number,part in pairs(stars) do
  1019. if part == nil then
  1020. part:remove()
  1021. table.remove(stars,number)
  1022. break
  1023. end
  1024.  
  1025. part.Touched:connect(function(hit)
  1026. part.Velocity = part.CFrame.lookVector*20 +Vector3.new(0,70,0)
  1027. end)
  1028.  
  1029. end
  1030. for number,part in pairs(coins) do
  1031. if takeCooldown == false then
  1032. if (part.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= 3 then
  1033. part:remove()
  1034. takeCooldown = true
  1035. CoinsVal = CoinsVal+10
  1036. local coinSound = sound:Clone()
  1037. coinSound.SoundId = "rbxassetid://138702491"
  1038. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  1039. coinSound:Play()
  1040. game:GetService("Debris"):AddItem(coinSound,3)
  1041. table.remove(coins,number)
  1042. wait()
  1043. takeCooldown = false
  1044. end
  1045. end
  1046. end
  1047. for number,part in pairs(mushrooms) do
  1048. if takeCooldown == false then
  1049. if (part.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= 3 then
  1050. part:remove()
  1051. takeCooldown = true
  1052.  
  1053. local coinSound = sound:Clone()
  1054. coinSound.Volume = 0.07
  1055. coinSound.SoundId = "rbxassetid://162456532"
  1056. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  1057. coinSound:Play()
  1058. game:GetService("Debris"):AddItem(coinSound,3)
  1059. table.remove(mushrooms,number)
  1060. if lifes == 2 and lastLife == 2 then
  1061. CoinsVal = CoinsVal+20
  1062. end
  1063. if lifes == 1 then
  1064. lifes = 2
  1065. end
  1066. if lifes == 2 and lastLife == 1 then
  1067. growing = true
  1068. grow()
  1069. growing = false
  1070. end
  1071. lastLife = lifes
  1072. wait(.1)
  1073. takeCooldown = false
  1074. end
  1075. end
  1076. end
  1077. for number,part in pairs(stars) do
  1078. if takeCooldown == false then
  1079. if (part.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= 4 then
  1080. part:remove()
  1081. if starA == false then
  1082. takeCooldown = true
  1083.  
  1084. local coinSound = sound:Clone()
  1085.  
  1086. coinSound.SoundId = "rbxassetid://162456532"
  1087. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  1088. coinSound:Play()
  1089. game:GetService("Debris"):AddItem(coinSound,3)
  1090. levelMusic:Stop()
  1091. wait(0.5)
  1092. local starSound = sound:Clone()
  1093.  
  1094. starSound.SoundId = "rbxassetid://1058165596"
  1095. starSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  1096. starSound:Play()
  1097.  
  1098. starA = true
  1099. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge
  1100. game.Players.LocalPlayer.Character.Humanoid.Health = math.huge
  1101. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1102. if part:IsA("BasePart") then
  1103. part.Transparency = 1
  1104. end
  1105. end
  1106.  
  1107. game.Players.LocalPlayer.Character.Parent = game.Workspace.CurrentCamera
  1108.  
  1109.  
  1110.  
  1111.  
  1112. table.remove(stars,number)
  1113.  
  1114. wait(.1)
  1115. takeCooldown = false
  1116.  
  1117. wait(15)
  1118. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 1
  1119. game.Players.LocalPlayer.Character.Humanoid.Health = 1
  1120. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1121. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  1122. part.Transparency = 0
  1123. end
  1124. end
  1125. levelMusic:Play()
  1126. game.Players.LocalPlayer.Character.Parent = game.Workspace
  1127.  
  1128. starA = false
  1129. starSound:remove()
  1130. end
  1131. end
  1132. end
  1133. end
  1134.  
  1135.  
  1136.  
  1137.  
  1138. for number,part in pairs(flowers) do
  1139. if takeCooldown == false then
  1140. if (part.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude <= 3 then
  1141. part:remove()
  1142. takeCooldown = true
  1143.  
  1144. local coinSound = sound:Clone()
  1145. coinSound.Volume = 0.07
  1146. coinSound.SoundId = "rbxassetid://162456532"
  1147. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  1148. coinSound:Play()
  1149. game:GetService("Debris"):AddItem(coinSound,3)
  1150. table.remove(flowers,number)
  1151. if lifes == 3 and lastLife == 3 then
  1152. CoinsVal = CoinsVal+30
  1153. end
  1154. if lifes == 1 then
  1155. growing = true
  1156. grow()
  1157. growing = false
  1158. lifes = 2
  1159. end
  1160. if lifes == 2 then
  1161. growing = true
  1162. firegrow()
  1163. growing = false
  1164. end
  1165. lifes = 3
  1166.  
  1167. wait(.1)
  1168. takeCooldown = false
  1169.  
  1170. lastLife = lifes
  1171.  
  1172. end
  1173. end
  1174. end
  1175.  
  1176. for _,part in pairs(coins) do
  1177. part.CFrame = part.CFrame*CFrame.Angles(0,0.05,0)
  1178. end
  1179.  
  1180. for namba,mush in pairs(mushrooms) do
  1181. if mush == nil then
  1182. table.remove(mushrooms,namba)
  1183. end
  1184. mush.CFrame = (CFrame.new(mush.CFrame.p,Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,mush.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))-Vector3.new(0,0.1,0))*CFrame.Angles(0,math.rad(180),0)
  1185.  
  1186. mush.Velocity = mush.CFrame.lookVector*5
  1187. end
  1188. for namba,flowo in pairs(flowers) do
  1189. if flowo == nil then
  1190. table.remove(flowers,namba)
  1191. end
  1192. end
  1193. if game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity.Magnitude <= 1 then
  1194.  
  1195. if stopped == false and jumping == false then
  1196. stopped = true
  1197. walking = false
  1198. walkStop()
  1199. end
  1200. end
  1201. if game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  1202. if walking == false and jumping == false then
  1203. stopped = false
  1204.  
  1205. walk()
  1206. end
  1207. end
  1208. end)
  1209. game.Players.LocalPlayer.Character.Humanoid.StateChanged:connect(function(old,new)
  1210. if new == Enum.HumanoidStateType.Jumping or new == Enum.HumanoidStateType.Freefall then
  1211. jump()
  1212.  
  1213. jumping = true
  1214. end
  1215. if new == Enum.HumanoidStateType.Landed then
  1216. land()
  1217. wait(.05)
  1218. jumping = false
  1219. end
  1220. end)
  1221.  
  1222. game.Players.LocalPlayer.Character.Humanoid.HealthChanged:connect(function(newhealth)
  1223. if starA == false then
  1224. if 1 > newhealth then
  1225. if growing == false then
  1226.  
  1227. lifes = lifes-1
  1228.  
  1229. if lifes > 0 then
  1230. game.Players.LocalPlayer.Character.Humanoid.Health = 1
  1231. else
  1232.  
  1233. for _,child in pairs(game.Workspace:GetChildren()) do
  1234. if child:IsA("BasePart") then
  1235. if child.Name ~= "Baseplate" and child.Name ~= "Terrain" then
  1236. child:remove()
  1237. end
  1238. end
  1239. end
  1240. if game.Workspace:FindFirstChild("Baseplate") then
  1241. game.Workspace.Baseplate.Transparency = 1
  1242. GroundTexture:remove()
  1243. end
  1244. levelMusic:remove()
  1245. local gameover =sound:Clone()
  1246. gameover.SoundId = "rbxassetid://187102994"
  1247. gameover.Parent = game.Players.LocalPlayer.Character
  1248. gameover:Play()
  1249. color.Saturation = -1
  1250. color.Contrast = 5
  1251.  
  1252. sky.SkyboxBk = "http://www.roblox.com/asset/?id=1091341380"
  1253. sky.SkyboxFt = "http://www.roblox.com/asset/?id=1091341380"
  1254. sky.SkyboxLf = "http://www.roblox.com/asset/?id=1091341380"
  1255. sky.SkyboxRt = "http://www.roblox.com/asset/?id=1091341380"
  1256. sky.SkyboxUp = "http://www.roblox.com/asset/?id=1091341494"
  1257. sky.SkyboxDn = "http://www.roblox.com/asset/?id=1091341494"
  1258.  
  1259.  
  1260. sky.SunAngularSize = 0
  1261. sky.MoonAngularSize = 0
  1262.  
  1263.  
  1264. wait(4)
  1265. if game.Workspace:FindFirstChild("Baseplate") then
  1266. game.Workspace.Baseplate.Transparency = 0
  1267. end
  1268. gameover:remove()
  1269. color:remove()
  1270. sky:remove()
  1271.  
  1272. end
  1273.  
  1274.  
  1275. if lifes == 1 then
  1276. growing = true
  1277. degrow()
  1278. growing = false
  1279. end
  1280. if lifes == 2 then
  1281. growing = true
  1282. defiregrow()
  1283. growing = false
  1284. end
  1285.  
  1286.  
  1287. else
  1288. game.Players.LocalPlayer.Character.Humanoid.Health = 1
  1289. end
  1290. end
  1291. end
  1292. if starA == true then
  1293. game.Players.LocalPlayer.Character.Humanoid.Health = math.huge
  1294. end
  1295. lastLife = lifes
  1296. end)
  1297. end)
  1298.  
  1299. script2.MouseButton1Click:connect(function()
  1300. --wot
  1301.  
  1302. paly = game.Players.LocalPlayer
  1303. char = paly.Character
  1304. torso = char.Torso
  1305. neck = char.Torso.Neck
  1306. hum = char.Humanoid
  1307. Player = game:GetService("Players").LocalPlayer
  1308. local mouse = Player:GetMouse()
  1309. Character = Player.Character
  1310. tors = Character.Torso
  1311. lleg = Character["Left Leg"]
  1312. root = Character.HumanoidRootPart
  1313. hed = Character.Head
  1314. rleg = Character["Right Leg"]
  1315. rarm = Character["Right Arm"]
  1316. larm = Character["Left Arm"]
  1317. local Effects = {}
  1318. attack = false
  1319. local TColor = tors.BrickColor
  1320. vt = Vector3.new
  1321. bc = BrickColor.new
  1322. br = BrickColor.random
  1323. it = Instance.new
  1324. cf = CFrame.new
  1325. euler = CFrame.fromEulerAnglesXYZ
  1326. angles = CFrame.Angles
  1327. matr = math.random
  1328.  
  1329. local boll = Instance.new("Part",game.Lighting)
  1330. boll.Transparency = 0.5
  1331. boll.Material = "Neon"
  1332. boll.BrickColor = bc("Bright red")
  1333. boll.Anchored = true
  1334. boll.Size = vt(1,1,1)
  1335. boll.Shape = "Ball"
  1336. boll.CanCollide = false
  1337.  
  1338. local shur = Instance.new("Part",game.Lighting)
  1339. shur.Transparency = 0
  1340. shur.Material = "Neon"
  1341. shur.BrickColor = bc("Bright red")
  1342. shur.Anchored = true
  1343. shur.Size = vt(5,0.2,5)
  1344. shur.CanCollide = false
  1345. local Meshshur = Instance.new("CylinderMesh",shur)
  1346.  
  1347. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1348. if hit.Parent==nil then
  1349. return
  1350. end
  1351. h=hit.Parent:FindFirstChild("Humanoid")
  1352. for _,v in pairs(hit.Parent:children()) do
  1353. if v:IsA("Humanoid") then
  1354. h=v
  1355. end
  1356. end
  1357. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1358. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1359. end
  1360. if hit.Parent.className=="Hat" then
  1361. hit=hit.Parent.Parent:findFirstChild("Head")
  1362. end
  1363. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1364. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1365. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1366. return
  1367. end]]
  1368. -- hs(hit,1.2)
  1369. c=Instance.new("ObjectValue")
  1370. c.Name="creator"
  1371. c.Value=game:service("Players").LocalPlayer
  1372. c.Parent=h
  1373. game:GetService("Debris"):AddItem(c,.5)
  1374. Damage=math.random(minim,maxim)
  1375. -- h:TakeDamage(Damage)
  1376. blocked=false
  1377. block=hit.Parent:findFirstChild("Block")
  1378. if block~=nil then
  1379. print(block.className)
  1380. if block.className=="NumberValue" then
  1381. if block.Value>0 then
  1382. blocked=true
  1383. if decreaseblock==nil then
  1384. block.Value=block.Value-1
  1385. end
  1386. end
  1387. end
  1388. if block.className=="IntValue" then
  1389. if block.Value>0 then
  1390. blocked=true
  1391. if decreaseblock~=nil then
  1392. block.Value=block.Value-1
  1393. end
  1394. end
  1395. end
  1396. end
  1397. if blocked==false then
  1398. -- h:TakeDamage(Damage)
  1399. h.Health=h.Health-Damage
  1400. showDamage(hit.Parent,Damage,.5,TorsoColor)
  1401. else
  1402. h.Health=h.Health-(Damage/2)
  1403. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1404. end
  1405. if Type=="Knockdown" then
  1406. hum=hit.Parent.Humanoid
  1407. hum.PlatformStand=true
  1408. coroutine.resume(coroutine.create(function(HHumanoid)
  1409. swait(1)
  1410. HHumanoid.PlatformStand=false
  1411. end),hum)
  1412. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1413. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1414. local bodvol=Instance.new("BodyVelocity")
  1415. bodvol.velocity=angle*knockback
  1416. bodvol.P=5000
  1417. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1418. bodvol.Parent=hit
  1419. rl=Instance.new("BodyAngularVelocity")
  1420. rl.P=3000
  1421. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1422. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1423. rl.Parent=hit
  1424. game:GetService("Debris"):AddItem(bodvol,.5)
  1425. game:GetService("Debris"):AddItem(rl,.5)
  1426. elseif Type=="Normal" then
  1427. vp=Instance.new("BodyVelocity")
  1428. vp.P=500
  1429. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1430. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1431. if KnockbackType==1 then
  1432. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1433. elseif KnockbackType==2 then
  1434. vp.velocity=Property.CFrame.lookVector*knockback
  1435. end
  1436. if knockback>0 then
  1437. vp.Parent=hit.Parent.Torso
  1438. end
  1439. game:GetService("Debris"):AddItem(vp,.5)
  1440. elseif Type=="Up" then
  1441. local bodyVelocity=Instance.new("BodyVelocity")
  1442. bodyVelocity.velocity=vt(0,10,0)
  1443. bodyVelocity.P=1000
  1444. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  1445. bodyVelocity.Parent=hit
  1446. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1447. rl=Instance.new("BodyAngularVelocity")
  1448. rl.P=3000
  1449. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1450. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1451. rl.Parent=hit
  1452. game:GetService("Debris"):AddItem(rl,.5)
  1453. elseif Type=="Snare" then
  1454. bp=Instance.new("BodyPosition")
  1455. bp.P=2000
  1456. bp.D=100
  1457. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1458. bp.position=hit.Parent.Torso.Position
  1459. bp.Parent=hit.Parent.Torso
  1460. game:GetService("Debris"):AddItem(bp,1)
  1461. elseif Type=="Target" then
  1462. if Targetting==false then
  1463. ZTarget=hit.Parent.Torso
  1464. coroutine.resume(coroutine.create(function(Part)
  1465. swait(5)
  1466. end),ZTarget)
  1467. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1468. targetgui=Instance.new("BillboardGui")
  1469. targetgui.Parent=ZTarget
  1470. targetgui.Size=UDim2.new(10,100,10,100)
  1471. targ=Instance.new("ImageLabel")
  1472. targ.Parent=targetgui
  1473. targ.BackgroundTransparency=1
  1474. targ.Image="rbxassetid://4834067"
  1475. targ.Size=UDim2.new(1,0,1,0)
  1476. cam.CameraType="Scriptable"
  1477. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1478. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1479. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1480. Targetting=true
  1481. RocketTarget=ZTarget
  1482. for i=1,Property do
  1483. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1484. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1485. swait()
  1486. end
  1487. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1488. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1489. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1490. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1491. end
  1492. Targetting=false
  1493. RocketTarget=nil
  1494. targetgui.Parent=nil
  1495. cam.CameraType="Custom"
  1496. end
  1497. end
  1498. debounce=Instance.new("BoolValue")
  1499. debounce.Name="DebounceHit"
  1500. debounce.Parent=hit.Parent
  1501. debounce.Value=true
  1502. game:GetService("Debris"):AddItem(debounce,Delay)
  1503. c=Instance.new("ObjectValue")
  1504. c.Name="creator"
  1505. c.Value=Player
  1506. c.Parent=h
  1507. game:GetService("Debris"):AddItem(c,.5)
  1508. CRIT=false
  1509. hitDeb=true
  1510. AttackPos=6
  1511. end
  1512. end
  1513.  
  1514. showDamage=function(Char,Dealt,du,Color)
  1515. m=Instance.new("Model")
  1516. m.Name=""
  1517. h=Instance.new("Humanoid")
  1518. h.Health=0
  1519. h.MaxHealth=0
  1520. h.Parent=m
  1521. c=Instance.new("Part")
  1522. c.Transparency=0
  1523. c.Material = "Neon"
  1524. c.BrickColor=bc("Bright red")
  1525. c.Name="Head"
  1526. c.TopSurface=0
  1527. c.BottomSurface=0
  1528. CV="Hot pink"
  1529.  
  1530. local txt = Instance.new("BillboardGui", c)
  1531. txt.Adornee = c
  1532. txt.Name = "_status"
  1533. txt.Size = UDim2.new(2, 0, 1.2, 0)
  1534. txt.StudsOffset = Vector3.new(-9, 8, 0)
  1535. local text = Instance.new("TextLabel", txt)
  1536. text.Size = UDim2.new(10, 0, 7, 0)
  1537. text.FontSize = "Size24"
  1538. text.TextScaled = true
  1539. text.TextTransparency = 0
  1540. text.BackgroundTransparency = 1
  1541. text.TextTransparency = 0
  1542. text.TextStrokeTransparency = 0
  1543. text.Font = "Highway"
  1544. text.TextStrokeColor3 = BrickColor.new("Really black").Color
  1545.  
  1546. v=Instance.new("Part")
  1547. v.Name = "ColorBrick"
  1548. v.Parent=c
  1549. v.FormFactor="Symmetric"
  1550. v.Anchored=true
  1551. v.CanCollide=false
  1552. v.BottomSurface="Smooth"
  1553. v.TopSurface="Smooth"
  1554. v.Size=Vector3.new(10,5,3)
  1555. v.Transparency=1
  1556. v.CFrame=c.CFrame
  1557. v.BrickColor=BrickColor.new(CV)
  1558. v.Transparency=1
  1559. text.TextColor3 = BrickColor.new("Really red").Color
  1560. v.Shape="Block"
  1561. text.Text = tostring(Dealt)
  1562. local tick = Instance.new("Sound",c)
  1563. tick.SoundId = "rbxassetid://553325070"
  1564. tick.Volume = 1.25
  1565. tick.Pitch = 0.75
  1566. tick:Play()
  1567. c.formFactor="Plate"
  1568. c.Transparency = 0.99
  1569. c.Size=Vector3.new(1,.4,1)
  1570. ms=Instance.new("CylinderMesh")
  1571. ms.Scale=Vector3.new(.8,.8,.8)
  1572. if CRIT==true then
  1573. ms.Scale=Vector3.new(1,1.25,1)
  1574. end
  1575. ms.Parent=c
  1576. c.Reflectance=0
  1577. Instance.new("BodyGyro").Parent=c
  1578. c.Parent=m
  1579. if Char:findFirstChild("Head")~=nil then
  1580. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1581. elseif Char.Parent:findFirstChild("Head")~=nil then
  1582. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1583. end
  1584. f=Instance.new("BodyPosition")
  1585. f.P=2000
  1586. f.D=100
  1587. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1588. f.position=c.Position+Vector3.new(0,3,0)
  1589. f.Parent=c
  1590. game:GetService("Debris"):AddItem(m,.5+du)
  1591. c.CanCollide=false
  1592. m.Parent=workspace
  1593. c.CanCollide=false
  1594. end
  1595.  
  1596. function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
  1597. for _, c in pairs(workspace:children()) do
  1598. local hum = c:findFirstChild("Humanoid")
  1599. if hum ~= nil then
  1600. local head = c:findFirstChild("Torso")
  1601. if head ~= nil then
  1602. local targ = head.Position - Part.Position
  1603. local mag = targ.magnitude
  1604. if mag <= magni and c.Name ~= Player.Name then
  1605. Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
  1606. end
  1607. end
  1608. end
  1609. end
  1610. end
  1611.  
  1612. function Explode(rad,par)
  1613. local expart = Instance.new("Part",script.Parent)
  1614. local expart2 = Instance.new("Part",script.Parent)
  1615. local partMesh = Instance.new("SpecialMesh",expart)
  1616. partMesh.MeshType = "Sphere"
  1617. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1618. partMesh2.MeshType = "Sphere"
  1619. local expld = Instance.new("Explosion", script.Parent)
  1620. local plode = Instance.new("Sound",expart)
  1621. plode.SoundId = "rbxassetid://165970126"
  1622. plode.Volume = 2.5
  1623. plode.Pitch = 1
  1624. plode.Looped = false
  1625. plode:Play()
  1626. expld.BlastRadius = rad
  1627. expld.Position = par.Position
  1628. partMesh.Scale = vt(rad,rad,rad)
  1629. expart.Size = vt(1,1,1)*1.5
  1630. expart.Transparency = 0.5
  1631. expart.Anchored = true
  1632. expart.Material = "Neon"
  1633. expart.BrickColor = bc("Deep orange")
  1634. expart.CFrame = par.CFrame
  1635. partMesh2.Scale = vt(rad,rad,rad)
  1636. expart2.Size = vt(1.15,1.15,1.15)*1.5
  1637. expart2.Transparency = 0.5
  1638. expart2.Anchored = true
  1639. expart2.Material = "Neon"
  1640. expart2.BrickColor = bc("Bright orange")
  1641. expart2.CFrame = par.CFrame
  1642. local value = 5
  1643. par:Destroy()
  1644. for i = 0, 100 do
  1645. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1646. expart.CFrame = expart.CFrame
  1647. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1648. expart2.CFrame = expart.CFrame
  1649. value = value - 0.225
  1650. if value <= 0 then
  1651. expart.Transparency = expart.Transparency + 0.0125
  1652. expart2.Transparency = expart.Transparency + 0.0125
  1653. value = 0
  1654. end
  1655. wait()
  1656. end
  1657. plode.Parent = nil
  1658. expart.Parent = nil
  1659. expart2.Parent = nil
  1660. expld.Parent = nil
  1661. end
  1662.  
  1663. function SkyBeam()
  1664. local s = Instance.new("Sound",hed)
  1665. s.SoundId = "rbxassetid://163619849"
  1666. s.Pitch = 0.5
  1667. s.Volume = 2.5
  1668. s.Looped = false
  1669. s:Play()
  1670. local spart = Instance.new("Part",workspace)
  1671. spart.Size = vt(1,1,1)
  1672. spart.BrickColor = TColor
  1673. spart.Material = "Neon"
  1674. spart.Transparency = 1
  1675. spart.Anchored = true
  1676. spart.CanCollide = false
  1677. spart.CFrame = tors.CFrame + vt(0,0.01,0)
  1678. local box = Instance.new("SelectionBox", spart)
  1679. box.Adornee = box.Parent
  1680. box.Transparency = 1
  1681. box.Color = BrickColor.new("Really black")
  1682. box.LineThickness = 0.1
  1683. local value = 0.1
  1684. local valuer = 0.1
  1685. for i = 0, 50 do
  1686. spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
  1687. spart.Size = spart.Size + vt(0.1,0.1,0.1)
  1688. box.Transparency = box.Transparency - 0.05
  1689. spart.CFrame = tors.CFrame
  1690. wait()
  1691. end
  1692. for i = 0, 10 do
  1693. valuer = valuer - 0.01
  1694. spart.Transparency = spart.Transparency - 0.1
  1695. spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
  1696. spart.Size = spart.Size + vt(valuer,10,valuer)
  1697. box.Transparency = box.Transparency - 0.05
  1698. spart.CFrame = tors.CFrame
  1699. wait()
  1700. end
  1701. hithere=spart.Touched:connect(function(hit) Damagefunc(hit,35,47,0,"Normal",root,.2,1) end)
  1702. for i = 0, 10 do
  1703. spart.CFrame = tors.CFrame
  1704. for e = 0, 10 do
  1705. value = value + 0.05
  1706. spart.Transparency = spart.Transparency + 0.065
  1707. spart.Size = spart.Size + vt(value,value,value)
  1708. spart.CFrame = tors.CFrame
  1709. wait()
  1710. end
  1711. for e = 0, 10 do
  1712. value = value - 0.05
  1713. spart.Transparency = spart.Transparency - 0.065
  1714. spart.Size = spart.Size + vt(value,value,value)
  1715. spart.CFrame = tors.CFrame
  1716. wait()
  1717. end
  1718. wait()
  1719. end
  1720. for i = 0, 50 do
  1721. spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
  1722. spart.Transparency = spart.Transparency + 0.065
  1723. spart.Size = spart.Size - vt(1.5,-10,1.5)
  1724. box.Transparency = box.Transparency + 0.075
  1725. spart.CFrame = tors.CFrame
  1726. wait()
  1727. end
  1728. spart:Destroy()
  1729. s:Destroy()
  1730. end
  1731.  
  1732. function Block()
  1733. local spart = Instance.new("Part",workspace)
  1734. spart.Size = vt(5,8,5)
  1735. spart.BrickColor = TColor
  1736. spart.Material = "Neon"
  1737. spart.Transparency = 1
  1738. spart.Anchored = true
  1739. spart.CanCollide = false
  1740. spart.CFrame = tors.CFrame + vt(0,0.01,0)
  1741. local box = Instance.new("SelectionBox", spart)
  1742. box.Adornee = box.Parent
  1743. box.Transparency = 1
  1744. box.Color = BrickColor.new("Really black")
  1745. box.LineThickness = 0.1
  1746. for i = 0, 50 do
  1747. spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
  1748. spart.Size = spart.Size + vt(0.05,0.05,0.05)
  1749. box.Transparency = box.Transparency - 0.05
  1750. spart.CFrame = tors.CFrame
  1751. wait()
  1752. end
  1753. for i = 0, 5 do
  1754. spart.CFrame = tors.CFrame
  1755. for z = 0, 25 do
  1756. spart.CFrame = tors.CFrame
  1757. spart.Transparency = spart.Transparency - 0.05
  1758. spart.CFrame = tors.CFrame
  1759. wait()
  1760. end
  1761. for z = 0, 25 do
  1762. spart.CFrame = tors.CFrame
  1763. spart.Transparency = spart.Transparency + 0.05
  1764. spart.CFrame = tors.CFrame
  1765. wait()
  1766. end
  1767. wait()
  1768. spart.CFrame = tors.CFrame
  1769. end
  1770. for i = 0, 50 do
  1771. spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
  1772. spart.Size = spart.Size - vt(0.05,0.05,0.05)
  1773. box.Transparency = box.Transparency + 0.05
  1774. spart.CFrame = tors.CFrame
  1775. wait()
  1776. end
  1777. spart:Destroy()
  1778. end
  1779.  
  1780. function HyperShot()
  1781. local s = Instance.new("Sound",hed)
  1782. s.SoundId = "rbxassetid://200632561"
  1783. s.Pitch = 0.5
  1784. s.Volume = 1.5
  1785. s.Looped = false
  1786. s:Play()
  1787. local spart = Instance.new("Part",workspace)
  1788. spart.Size = vt(10,10,10)
  1789. spart.BrickColor = TColor
  1790. spart.Material = "Neon"
  1791. spart.Transparency = 0.15
  1792. spart.Anchored = true
  1793. spart.CanCollide = false
  1794. spart.CFrame = tors.CFrame + vt(0,0.01,0)
  1795. spart.Anchored = false
  1796. local box = Instance.new("SelectionBox", spart)
  1797. box.Adornee = box.Parent
  1798. box.Transparency = 0.15
  1799. box.Color = BrickColor.new("Really black")
  1800. box.LineThickness = 0.1
  1801. local spart2 = Instance.new("Part",workspace)
  1802. spart2.Size = vt(8.5,8.5,8.5)
  1803. spart2.BrickColor = BrickColor.random()
  1804. spart2.Material = "Neon"
  1805. spart2.Transparency = 0
  1806. spart2.Anchored = true
  1807. spart2.CanCollide = false
  1808. spart2.CFrame = tors.CFrame + vt(0,0.01,0)
  1809. spart2.Anchored = false
  1810. local box2 = Instance.new("SelectionBox", spart2)
  1811. box2.Adornee = box2.Parent
  1812. box2.Transparency = 0
  1813. box2.Color = BrickColor.new("Really black")
  1814. box2.LineThickness = 0.1
  1815. local bv = Instance.new("BodyVelocity")
  1816. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1817. bv.velocity = mouse.Hit.lookVector *35
  1818. bv.Parent = spart
  1819. local bv2 = Instance.new("BodyVelocity")
  1820. bv2.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1821. bv2.velocity = mouse.Hit.lookVector *35
  1822. bv2.Parent = spart2
  1823. wait(0.1)
  1824. hithere=spart.Touched:connect(function(hit) Damagefunc(hit,10,19,0,"Normal",root,.2,1) end)
  1825. for i = 0, 25 do
  1826. local bul = Instance.new("Part",workspace)
  1827. local sphere = Instance.new("SpecialMesh",bul)
  1828. sphere.MeshType = "Sphere"
  1829. bul.Size = vt(1,1,1)
  1830. bul.BrickColor = BrickColor.new("Really black")
  1831. bul.Shape = "Ball"
  1832. bul.Anchored = true
  1833. bul.Material = "Neon"
  1834. bul.Transparency = 0.5
  1835. bul.CanCollide = false
  1836. bul.CFrame = spart.CFrame
  1837. for z = 0, 20 do
  1838. sphere.Scale = sphere.Scale + vt(2.5,2.5,2.5)
  1839. bul.Transparency = bul.Transparency + 0.025
  1840. bul.BrickColor = BrickColor.random()
  1841. bul.CFrame = spart.CFrame
  1842. spart2.BrickColor = BrickColor.random()
  1843. spart.CFrame = spart.CFrame*CFrame.Angles(0.05,0.05,0.05)
  1844. spart2.CFrame = spart2.CFrame*CFrame.Angles(0.05,0.05,0.05)
  1845. box.Transparency = box.Transparency + 0.0025
  1846. spart.Transparency = spart.Transparency + 0.0025
  1847. box2.Transparency = box2.Transparency + 0.0025
  1848. spart2.Transparency = spart2.Transparency + 0.0025
  1849. wait()
  1850. end
  1851. bul:Destroy()
  1852. end
  1853. spart:Destroy()
  1854. spart2:Destroy()
  1855. s:Destroy()
  1856. end
  1857.  
  1858. function BasicShot()
  1859. local s = Instance.new("Sound",hed)
  1860. s.SoundId = "rbxassetid://200632561"
  1861. s.Pitch = 1
  1862. s.Volume = 1
  1863. s.Looped = false
  1864. s:Play()
  1865. local bul = Instance.new("Part",workspace)
  1866. bul.Size = vt(5,5,5)
  1867. bul.BrickColor = BrickColor.new("Really black")
  1868. bul.Shape = "Ball"
  1869. bul.Material = "Neon"
  1870. bul.Transparency = 0.5
  1871. bul.CanCollide = false
  1872. bul.CFrame = tors.CFrame + vt(0,0.01,0)
  1873. local bul2 = Instance.new("Part",workspace)
  1874. bul2.Size = vt(4.5,4.5,4.5)
  1875. bul2.BrickColor = TColor
  1876. bul2.Shape = "Ball"
  1877. bul2.Material = "Neon"
  1878. bul2.Transparency = 0
  1879. bul2.CanCollide = false
  1880. bul2.CFrame = bul.CFrame
  1881. local bv = Instance.new("BodyVelocity")
  1882. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1883. bv.velocity = mouse.Hit.lookVector * 50
  1884. bv.Parent = bul2
  1885. local bvr = Instance.new("BodyVelocity")
  1886. bvr.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1887. bvr.velocity = mouse.Hit.lookVector * 50
  1888. bvr.Parent = bul
  1889. hithere=bul.Touched:connect(function(hit) Damagefunc(hit,8,13,0,"Normal",root,.2,1) end)
  1890. wait(5)
  1891. bul:Destroy()
  1892. bul2:Destroy()
  1893. s:Destroy()
  1894. end
  1895.  
  1896. mouse.Button1Down:connect(function()
  1897. BasicShot()
  1898. end)
  1899. mouse.KeyDown:connect(function(k)
  1900.  
  1901. k = k:lower()
  1902. if k == "r" then
  1903. Block()
  1904. end
  1905. if k == "e" then
  1906. HyperShot()
  1907. end
  1908. end)
  1909. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement