Advertisement
HenloMyDude

mario with no map

Sep 23rd, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.25 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86. local h,t
  87. --Give the server mouse data every second frame, but only if the values changed
  88. --If player is not moving their mouse, client won't fire events
  89. local HB = game:GetService("RunService").Heartbeat
  90. while true do
  91. if h~=Mouse.Hit or t~=Mouse.Target then
  92. h,t=Mouse.Hit,Mouse.Target
  93. Event:FireServer({isMouse=true,Target=t,Hit=h})
  94. end
  95. --Wait 2 frames
  96. for i=1,2 do
  97. HB:Wait()
  98. end
  99. end]==],script)
  100.  
  101. ----Sandboxed game object that allows the usage of client-side methods and services
  102. --Real game object
  103. local RealGame = game
  104.  
  105. --Metatable for fake service
  106. local FakeService_Metatable = {
  107. __index = function(self,k)
  108. local s = rawget(self,"_RealService")
  109. if s then
  110. return typeof(s[k])=="function"
  111. and function(_,...)return s[k](s,...)end or s[k]
  112. end
  113. end,
  114. __newindex = function(self,k,v)
  115. local s = rawget(self,"_RealService")
  116. if s then s[k]=v end
  117. end
  118. }
  119. local function FakeService(t,RealService)
  120. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  121. return setmetatable(t,FakeService_Metatable)
  122. end
  123.  
  124. --Fake game object
  125. local FakeGame = {
  126. GetService = function(self,s)
  127. return rawget(self,s) or RealGame:GetService(s)
  128. end,
  129. Players = FakeService({
  130. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  131. },"Players"),
  132. UserInputService = FakeService(UIS,"UserInputService"),
  133. ContextActionService = FakeService(CAS,"ContextActionService"),
  134. RunService = FakeService({
  135. _btrs = {},
  136. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  137. BindToRenderStep = function(self,name,_,fun)
  138. self._btrs[name] = self.Heartbeat:Connect(fun)
  139. end,
  140. UnbindFromRenderStep = function(self,name)
  141. self._btrs[name]:Disconnect()
  142. end,
  143. },"RunService")
  144. }
  145. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  146. FakeGame.service = FakeGame.GetService
  147. FakeService(FakeGame,game)
  148. --Changing owner to fake player object to support owner:GetMouse()
  149. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  150. end
  151.  
  152.  
  153. --Script made by Pedrorb03. Enjoy it ;)
  154.  
  155. --Set Up
  156.  
  157. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 1
  158. game.Players.LocalPlayer.Character.Humanoid.Health = 1
  159.  
  160.  
  161.  
  162.  
  163. for _,anim in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
  164. anim:Stop()
  165. end
  166. game.Players.LocalPlayer.Character.Animate:remove()
  167. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  168. if part.ClassName == "Body Colors" or part.ClassName == "Accessory" or part.ClassName == "Pants" or part.ClassName == "Shirt" or part.ClassName == "Shirt Graphic" then
  169. part:remove()
  170. end
  171. end
  172. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  173. if part:IsA("BasePart") then
  174. part.BrickColor = BrickColor.new("Pastel brown")
  175. end
  176. end
  177. shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character) shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
  178. pants = Instance.new("Pants",game.Players.LocalPlayer.Character) pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
  179. game.Players.LocalPlayer.Character.Head.Mesh.Scale = Vector3.new(0.45,0.45,0.45)
  180. game.Players.LocalPlayer.Character.Head.Mesh.Offset = Vector3.new(0,0.3,-0.1)
  181. game.Players.LocalPlayer.Character.Head.face:remove()
  182. game.Players.LocalPlayer.Character.Head.Mesh.MeshId = "rbxassetid://494265290"
  183. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
  184.  
  185. game.Players.LocalPlayer.Character.Head.Jumping.SoundId = "rbxassetid://158309736"
  186. sound = nil
  187.  
  188. while sound == nil do
  189. wait()
  190. sound = Instance.new("Sound")
  191. if sound ~= nil then
  192. break
  193. end
  194. end
  195.  
  196. levelMusic = sound:Clone()
  197. levelMusic.SoundId = "rbxassetid://232553386"
  198. levelMusic.Looped = true
  199. levelMusic.Parent = game.Players.LocalPlayer.Character
  200. levelMusic.Volume = 0.3
  201. levelMusic:Play()
  202. takeCooldown = false
  203.  
  204. lifes = 2
  205.  
  206. lastLife = lifes
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 65
  218. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  219.  
  220.  
  221.  
  222. --Animation Functions
  223.  
  224. walking = false
  225. stopped = true
  226.  
  227. jumping = false
  228. function walk()
  229. if lifes > 1 then
  230. walking = true
  231. for i=1,1 do
  232. wait(0.1)
  233.  
  234. if stopped == false and jumping == false then
  235. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  236. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  237. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
  238. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
  239.  
  240. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(30))
  241. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  242. else
  243. break
  244. end
  245.  
  246. wait(0.1)
  247. if stopped == false and jumping == false then
  248. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  249. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  250.  
  251. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
  252. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
  253.  
  254. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  255. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(30))
  256. else
  257. break
  258. end
  259. end
  260. walking = false
  261. else
  262. walking = true
  263. for i=1,1 do
  264. wait(0.1)
  265.  
  266. if stopped == false and jumping == false then
  267. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  268. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  269. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
  270. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
  271.  
  272. 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))
  273. 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))
  274. else
  275. break
  276. end
  277.  
  278. wait(0.1)
  279. if stopped == false and jumping == false then
  280. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  281. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  282.  
  283. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(60))
  284. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.15,0.4,0)*CFrame.Angles(0,math.rad(90),math.rad(-60))
  285.  
  286. 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))
  287. 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))
  288. else
  289. break
  290. end
  291. end
  292. walking = false
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300. end
  301.  
  302.  
  303. end
  304.  
  305. function walkStop()
  306. if lifes > 1 then
  307. for i=1,1 do
  308. if jumping == false and stopped == true and walking == false then
  309. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,math.rad(-90))
  310. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,1,-0.5)*CFrame.Angles(math.rad(90),0,math.rad(-30))
  311.  
  312. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  313. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(0,math.rad(90),math.rad(0))
  314.  
  315. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-250))
  316. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-120))
  317. else
  318. break
  319. end
  320. wait(0.25)
  321. if jumping == false and stopped == true and walking == false then
  322.  
  323. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  324. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  325.  
  326. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  327. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  328.  
  329. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  330. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  331. else
  332. break
  333. end
  334. end
  335. else
  336.  
  337. for i=1,1 do
  338.  
  339.  
  340. if jumping == false and stopped == true and walking == false then
  341.  
  342. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-0.4,0.25,-0.75)*CFrame.Angles(0,0,math.rad(-90))
  343. 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))
  344.  
  345. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  346. 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))
  347.  
  348. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-250))
  349. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-120))
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356. else
  357. break
  358. end
  359. wait(0.25)
  360. if jumping == false and stopped == true and walking == false then
  361.  
  362.  
  363. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  364. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  365.  
  366. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  367. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  368.  
  369. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  370. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  371. else
  372. break
  373. end
  374.  
  375. end
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389. end
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412. end
  413.  
  414. function jump()
  415. if lifes > 1 then
  416. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  417. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(150))
  418.  
  419. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,0,-0.5)*CFrame.Angles(0,math.rad(90),math.rad(0))
  420. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  421.  
  422. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  423. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  424. else
  425. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-30))
  426. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.2,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(150))
  427.  
  428. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  429. 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))
  430.  
  431. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  432. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  433. end
  434. end
  435.  
  436. function land()
  437. if lifes > 1 then
  438. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  439. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  440.  
  441. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  442. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  443.  
  444. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  445. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  446. else
  447. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  448. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(0.2,0.5,0)*CFrame.Angles(0,math.rad(90),0)
  449.  
  450. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(0.74,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  451. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(0.26,0,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  452.  
  453. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  454. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(-180))
  455. end
  456. end
  457.  
  458. growing = false
  459.  
  460.  
  461. function degrow()
  462.  
  463. for i=1,5 do
  464. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  465. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  466. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  467. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  468. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  469. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  470.  
  471. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size/2
  472. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size/2
  473. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size/2
  474. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size/2
  475. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size/2
  476. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size/2
  477.  
  478. rs.Parent = game.Players.LocalPlayer.Character.Torso
  479. ls.Parent = game.Players.LocalPlayer.Character.Torso
  480. rh.Parent = game.Players.LocalPlayer.Character.Torso
  481. lh.Parent = game.Players.LocalPlayer.Character.Torso
  482. n.Parent = game.Players.LocalPlayer.Character.Torso
  483. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  484. wait(.1)
  485. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  486. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  487. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  488. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  489. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  490. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  491.  
  492. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size*2
  493. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size*2
  494. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size*2
  495. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size*2
  496. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size*2
  497. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size*2
  498.  
  499. rs.Parent = game.Players.LocalPlayer.Character.Torso
  500. ls.Parent = game.Players.LocalPlayer.Character.Torso
  501. rh.Parent = game.Players.LocalPlayer.Character.Torso
  502. lh.Parent = game.Players.LocalPlayer.Character.Torso
  503. n.Parent = game.Players.LocalPlayer.Character.Torso
  504. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  505. wait(.1)
  506. end
  507. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  508. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  509. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  510. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  511. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  512. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  513.  
  514. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size/2
  515. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size/2
  516. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size/2
  517. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size/2
  518. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size/2
  519. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size/2
  520.  
  521. rs.Parent = game.Players.LocalPlayer.Character.Torso
  522. ls.Parent = game.Players.LocalPlayer.Character.Torso
  523. rh.Parent = game.Players.LocalPlayer.Character.Torso
  524. lh.Parent = game.Players.LocalPlayer.Character.Torso
  525. n.Parent = game.Players.LocalPlayer.Character.Torso
  526. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  527.  
  528. end
  529. function grow()
  530.  
  531. for i=1,5 do
  532.  
  533. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  534. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  535. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  536. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  537. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  538. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  539.  
  540. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size*2
  541. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size*2
  542. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size*2
  543. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size*2
  544. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size*2
  545. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size*2
  546.  
  547. rs.Parent = game.Players.LocalPlayer.Character.Torso
  548. ls.Parent = game.Players.LocalPlayer.Character.Torso
  549. rh.Parent = game.Players.LocalPlayer.Character.Torso
  550. lh.Parent = game.Players.LocalPlayer.Character.Torso
  551. n.Parent = game.Players.LocalPlayer.Character.Torso
  552. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  553. wait(.1)
  554. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  555. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  556. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  557. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  558. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  559. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  560.  
  561. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size/2
  562. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size/2
  563. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size/2
  564. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size/2
  565. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size/2
  566. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size/2
  567.  
  568. rs.Parent = game.Players.LocalPlayer.Character.Torso
  569. ls.Parent = game.Players.LocalPlayer.Character.Torso
  570. rh.Parent = game.Players.LocalPlayer.Character.Torso
  571. lh.Parent = game.Players.LocalPlayer.Character.Torso
  572. n.Parent = game.Players.LocalPlayer.Character.Torso
  573. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  574. wait(.1)
  575. end
  576.  
  577. local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  578. local rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  579. local ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  580. local rh = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  581. local lh = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  582. local n = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  583.  
  584. game.Players.LocalPlayer.Character.HumanoidRootPart.Size = game.Players.LocalPlayer.Character.HumanoidRootPart.Size*2
  585. game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size*2
  586. game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size*2
  587. game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size*2
  588. game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size*2
  589. game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size*2
  590.  
  591. rs.Parent = game.Players.LocalPlayer.Character.Torso
  592. ls.Parent = game.Players.LocalPlayer.Character.Torso
  593. rh.Parent = game.Players.LocalPlayer.Character.Torso
  594. lh.Parent = game.Players.LocalPlayer.Character.Torso
  595. n.Parent = game.Players.LocalPlayer.Character.Torso
  596.  
  597. rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  598.  
  599. end
  600.  
  601. function firegrow()
  602.  
  603.  
  604. for i=1,5 do
  605. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821700"
  606. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821953"
  607. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=1091724768"
  608. wait(.1)
  609. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
  610. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
  611. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
  612. wait(.1)
  613. end
  614. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821700"
  615. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821953"
  616. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=1091724768"
  617.  
  618. end
  619. function defiregrow()
  620.  
  621.  
  622. for i=1,5 do
  623. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
  624. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
  625. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
  626. wait(.1)
  627.  
  628. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821700"
  629. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821953"
  630. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=1091724768"
  631. wait(.1)
  632. end
  633. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
  634. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
  635. game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
  636.  
  637. end
  638.  
  639. function fireThrow()
  640.  
  641.  
  642. local soundos = sound:Clone()
  643. soundos.SoundId = "rbxassetid://182755400"
  644. soundos.Parent = game.Players.LocalPlayer.Character.Torso
  645. soundos:Play()
  646. game:GetService("Debris"):AddItem(soundos,2)
  647. local fie = fire:Clone()
  648. fie.CanCollide = false
  649. 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)
  650. fie.Parent = game.Workspace
  651. table.insert(fires,fie)
  652. fie.Velocity = fie.CFrame.lookVector*30
  653. game:GetService("Debris"):AddItem(fie,3)
  654. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(90))
  655. wait(.1)
  656. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
  657.  
  658.  
  659.  
  660.  
  661. end
  662.  
  663.  
  664. --Main
  665. game.Players.LocalPlayer.Character["Right Leg"].Touched:connect(function(hit)
  666. if hit.Parent then
  667. if hit.Parent ~= game.Players.LocalPlayer.Character then
  668.  
  669. if hit.Parent:FindFirstChild("Humanoid") then
  670. if hit.Parent.Humanoid.Health > 0 then
  671. hit.Parent.Humanoid.Health = 0
  672. hit.CanCollide = true
  673. hit.Size = Vector3.new(hit.Size.X,0.05,hit.Size.Z)
  674. game.Players.LocalPlayer.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  675. local sond = sound:Clone()
  676. sond.SoundId = "rbxassetid://140439666"
  677. sond.Parent = game.Players.LocalPlayer.Character.Torso
  678. sond:Play()
  679. game:GetService("Debris"):AddItem(sond,2)
  680. end
  681. end
  682. end
  683. end
  684. end)
  685. game.Players.LocalPlayer.Character.Head.Touched:connect(function(part)
  686. local did = false
  687. local num = 0
  688. for number,part2 in pairs(bricks) do
  689. if part2 == part then
  690. did = true
  691. num = number
  692. end
  693. end
  694. if did == true then
  695.  
  696. part:remove()
  697.  
  698. local coinSound = sound:Clone()
  699. coinSound.SoundId = "rbxassetid://317619936"
  700. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  701. coinSound:Play()
  702. game:GetService("Debris"):AddItem(coinSound,3)
  703. table.remove(bricks,num)
  704.  
  705. end
  706.  
  707. local did = false
  708. local num = 0
  709. for number,part2 in pairs(blocks) do
  710. if part2 == part then
  711. did = true
  712. num = number
  713. end
  714. end
  715. if did == true then
  716.  
  717. part.Mesh.MeshId = "rbxassetid://1089569418"
  718. part.Mesh.TextureId = "rbxassetid://1089568636"
  719.  
  720. local coinSound = sound:Clone()
  721. coinSound.SoundId = "rbxassetid://317619936"
  722. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  723. coinSound:Play()
  724. game:GetService("Debris"):AddItem(coinSound,3)
  725. table.remove(blocks,num)
  726. local get = math.random(1,2)
  727. if get == 1 then
  728. local coinHolo = coin:Clone()
  729. coinHolo.Parent = part
  730. coinHolo.CFrame = part.CFrame
  731. CoinsVal = CoinsVal+10
  732. local coinSound = sound:Clone()
  733. coinSound.SoundId = "rbxassetid://138702491"
  734. coinSound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  735. coinSound:Play()
  736. game:GetService("Debris"):AddItem(coinSound,3)
  737.  
  738. for i=1,10 do
  739. wait()
  740. coinHolo.CFrame = coinHolo.CFrame+Vector3.new(0,0.25,0)
  741. end
  742. wait(1)
  743. coinHolo:remove()
  744. end
  745. if get == 2 then
  746. local chance = math.random(1,3)
  747.  
  748. if chance > 1 then
  749. if lifes > 1 then
  750. local flow = flower:Clone()
  751. flow.Parent = game.Workspace
  752. flow.CFrame = part.CFrame
  753. table.insert(flowers,flow)
  754. for i=1,10 do
  755. wait()
  756. flow.CFrame = flow.CFrame+Vector3.new(0,0.25,0)
  757. end
  758.  
  759. end
  760. if lifes == 1 then
  761. local mush = mushroom:Clone()
  762. mush.CFrame = part.CFrame+Vector3.new(0,2,0)
  763. mush.Parent = game.Workspace
  764.  
  765. table.insert(mushrooms,mush)
  766. end
  767. end
  768. if chance == 1 then
  769. local sta = star:Clone()
  770. sta.CFrame = part.CFrame+Vector3.new(0,2,0)
  771. sta.Parent = game.Workspace
  772.  
  773. table.insert(stars,sta)
  774. end
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782. end
  783. end
  784.  
  785.  
  786. end)
  787. starA = false
  788. cooldown = false
  789. colorz = 0
  790. starTimer = 0
  791. game:GetService("UserInputService").InputBegan:connect(function(key)
  792. if key.KeyCode == Enum.KeyCode.C then
  793. if color then
  794. color.Enabled = not color.Enabled
  795. end
  796. end
  797. if key.KeyCode == Enum.KeyCode.Z then
  798. if lifes > 1 then
  799. local flow = flower:Clone()
  800. flow.Parent = game.Workspace
  801. flow.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  802. table.insert(flowers,flow)
  803.  
  804. end
  805. if lifes == 1 then
  806. local mush = mushroom:Clone()
  807. mush.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  808. mush.Parent = game.Workspace
  809.  
  810. table.insert(mushrooms,mush)
  811. end
  812. end
  813. if key.KeyCode == Enum.KeyCode.X then
  814.  
  815.  
  816. local sta = star:Clone()
  817. sta.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  818. sta.Parent = game.Workspace
  819.  
  820. table.insert(stars,sta)
  821.  
  822. end
  823.  
  824. if key.KeyCode == Enum.KeyCode.E then
  825. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  826. if lifes == 3 then
  827. if cooldown == false then
  828. cooldown = true
  829. fireThrow()
  830. cooldown = false
  831. end
  832. end
  833.  
  834.  
  835. end
  836. end)
  837. game:GetService("UserInputService").InputEnded:connect(function(key)
  838. if key.KeyCode == Enum.KeyCode.E then
  839. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  840. end
  841. end)
  842. game:GetService("RunService").RenderStepped:connect(function()
  843.  
  844. starTimer = starTimer+1
  845. if starTimer > 1 then
  846. starTimer = 0
  847. colorz = colorz+1
  848. if colorz > 5 then
  849. colorz = 0
  850. end
  851. if starA == true then
  852. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  853. if part:IsA("BasePart") then
  854. if part.Name == "HumanoidRootPart" then
  855. for _,child in pairs(game.Workspace:GetChildren()) do
  856. if child ~= game.Players.LocalPlayer.Character then
  857. if child:FindFirstChild("Humanoid") then
  858. for _,parto in pairs(child:GetChildren()) do
  859. if parto:IsA("BasePart") then
  860. if (parto.Position-part.Position).magnitude <= 5 then
  861. parto:remove()
  862. end
  863. end
  864. end
  865. end
  866. end
  867. end
  868. end
  869.  
  870.  
  871. local clon = part:Clone()
  872. for _,child in pairs(clon:GetChildren()) do
  873. if child.ClassName ~= "SpecialMesh" then
  874. child:remove()
  875. else
  876. child.TextureId = ""
  877. end
  878. end
  879. clon.Anchored = true
  880. if colorz == 0 then
  881. clon.Color = Color3.fromRGB(255,0,0)
  882. end
  883. if colorz == 1 then
  884. clon.Color = Color3.fromRGB(255,255,0)
  885. end
  886. if colorz == 2 then
  887. clon.Color = Color3.fromRGB(0,255,0)
  888. end
  889. if colorz == 3 then
  890. clon.Color = Color3.fromRGB(0,255,255)
  891. end
  892. if colorz == 4 then
  893. clon.Color = Color3.fromRGB(0,0,255)
  894. end
  895. if colorz == 5 then
  896. clon.Color = Color3.fromRGB(255,0,255)
  897. end
  898. game:GetService("Debris"):AddItem(clon,0.5)
  899. clon.Transparency = 0
  900. clon.Anchored = true
  901. clon.CanCollide = false
  902. clon.Material = Enum.Material.SmoothPlastic
  903. clon.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  904. clon.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  905. clon.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  906. clon.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  907. clon.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  908. clon.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  909.  
  910.  
  911.  
  912.  
  913. clon.Parent = game.Workspace
  914. end
  915.  
  916.  
  917. end
  918.  
  919.  
  920.  
  921.  
  922.  
  923. end
  924. end
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943. end)
  944. game.Players.LocalPlayer.Character.Humanoid.StateChanged:connect(function(old,new)
  945. if new == Enum.HumanoidStateType.Jumping or new == Enum.HumanoidStateType.Freefall then
  946. jump()
  947.  
  948. jumping = true
  949. end
  950. if new == Enum.HumanoidStateType.Landed then
  951. land()
  952. wait(.05)
  953. jumping = false
  954. end
  955. end)
  956.  
  957. game.Players.LocalPlayer.Character.Humanoid.HealthChanged:connect(function(newhealth)
  958. if starA == false then
  959. if 1 > newhealth then
  960. if growing == false then
  961.  
  962. lifes = lifes-1
  963.  
  964. if lifes > 0 then
  965. game.Players.LocalPlayer.Character.Humanoid.Health = 1
  966. else
  967.  
  968. for _,child in pairs(game.Workspace:GetChildren()) do
  969. if child:IsA("BasePart") then
  970. if child.Name ~= "Baseplate" and child.Name ~= "Terrain" then
  971. child:remove()
  972. end
  973. end
  974. end
  975. if game.Workspace:FindFirstChild("Baseplate") then
  976. game.Workspace.Baseplate.Transparency = 1
  977. GroundTexture:remove()
  978. end
  979. levelMusic:remove()
  980. local gameover =sound:Clone()
  981. gameover.SoundId = "rbxassetid://187102994"
  982. gameover.Parent = game.Players.LocalPlayer.Character
  983. gameover:Play()
  984. color.Saturation = -1
  985. color.Contrast = 5
  986.  
  987. sky.SkyboxBk = "http://www.roblox.com/asset/?id=1091341380"
  988. sky.SkyboxFt = "http://www.roblox.com/asset/?id=1091341380"
  989. sky.SkyboxLf = "http://www.roblox.com/asset/?id=1091341380"
  990. sky.SkyboxRt = "http://www.roblox.com/asset/?id=1091341380"
  991. sky.SkyboxUp = "http://www.roblox.com/asset/?id=1091341494"
  992. sky.SkyboxDn = "http://www.roblox.com/asset/?id=1091341494"
  993.  
  994.  
  995. sky.SunAngularSize = 0
  996. sky.MoonAngularSize = 0
  997.  
  998.  
  999. wait(4)
  1000. if game.Workspace:FindFirstChild("Baseplate") then
  1001. game.Workspace.Baseplate.Transparency = 0
  1002. end
  1003. gameover:remove()
  1004. color:remove()
  1005. sky:remove()
  1006.  
  1007. end
  1008.  
  1009.  
  1010. if lifes == 1 then
  1011. growing = true
  1012. degrow()
  1013. growing = false
  1014. end
  1015. if lifes == 2 then
  1016. growing = true
  1017. defiregrow()
  1018. growing = false
  1019. end
  1020.  
  1021.  
  1022. else
  1023. game.Players.LocalPlayer.Character.Humanoid.Health = 1
  1024. end
  1025. end
  1026. end
  1027. if starA == true then
  1028. game.Players.LocalPlayer.Character.Humanoid.Health = math.huge
  1029. end
  1030. lastLife = lifes
  1031. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement