Advertisement
DaOMEGAa32

fe mario maker

Aug 15th, 2019
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.08 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.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152.  
  153. plr = game.Players.LocalPlayer
  154. repeat wait() until plr.Character
  155. char = plr.Character
  156.  
  157. -- Mario Maker by Theamazingnater
  158.  
  159. collectedstar = false
  160.  
  161. local Mario_Maker_Music = Instance.new("Sound",char)
  162. Mario_Maker_Music.SoundId = "rbxassetid://303511460"
  163. Mario_Maker_Music.Volume = 4
  164. Mario_Maker_Music.Looped = true
  165. Mario_Maker_Music:Play()
  166. Mario_Maker_Music.Name = "Music lololol"
  167.  
  168. local Build = Instance.new("Sound",char)
  169. Build.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
  170. Build.Volume = 4
  171.  
  172. local Boom = Instance.new("Sound",char)
  173. Boom.SoundId = "rbxassetid://833855896"
  174. Boom.Volume = 4
  175.  
  176. coroutine.wrap(function()
  177. while true do
  178. wait()
  179. Mario_Maker_Music.SoundId = "rbxassetid://303511460"
  180. Mario_Maker_Music.Volume = 4
  181. Mario_Maker_Music.Looped = true
  182. if not collectedstar then
  183. Mario_Maker_Music:Resume()
  184. end
  185. Mario_Maker_Music.Parent = char
  186. Mario_Maker_Music.Name = "Music lololol"
  187. Build.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
  188. Build.Volume = 4
  189. Build.Parent = char
  190. Boom.SoundId = "rbxassetid://833855896"
  191. Boom.Volume = 4
  192. Boom.Parent = char
  193. end
  194. end)()
  195.  
  196.  
  197. print("Mario Maker script by Theamazingnater")
  198.  
  199. print("Current stuff you can build:" .. [[
  200. Question Block
  201. Brick Block
  202. Note Block
  203. Empty Block
  204. POW Block
  205. ]])
  206.  
  207. print("More stuff will be added soon!" .. " Have fun!")
  208.  
  209. print("Changelog 7/2/2018: " .. [[
  210.  
  211. Added the POW Block (trips players for half a second)
  212. Added a 1UP powerup to the Question Block
  213. ]])
  214.  
  215.  
  216.  
  217. -- // Character Customization \\ --
  218. for i,v in pairs(char:GetChildren()) do
  219. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  220. v:Destroy()
  221. end
  222. end
  223. local hat = Instance.new("Part",char)
  224. hat.CanCollide = false
  225. local mesh = Instance.new("FileMesh",hat)
  226. mesh.MeshId = "http://www.roblox.com/asset/?id=1073659"
  227. mesh.TextureId = "http://www.roblox.com/asset/?id=112346870"
  228. local weld = Instance.new("Weld",hat)
  229. weld.Part0 = hat
  230. weld.Part1 = char.Head
  231. weld.C0 = CFrame.new(0, -0.749996185, 0.149999619, 1, 0, 0, 0, 0.999994755, 0, 0, 0, 1)
  232. local hammer = Instance.new("Part",char)
  233. hammer.CanCollide = false
  234. local mesh = Instance.new("FileMesh",hammer)
  235. mesh.MeshId = "http://www.roblox.com/asset/?id=16198309"
  236. mesh.TextureId = "http://www.roblox.com/asset/?id=16198294"
  237. mesh.Scale = mesh.Scale + Vector3.new(0.2,0.2,0.2)
  238. local weld = Instance.new("Weld",hammer)
  239. weld.Part0 = hammer
  240. weld.Part1 = char["Right Arm"]
  241. weld.C0 = CFrame.new(0.999994636, 0, -0.5, 0, 0.999994516, 0, 1, 0, 0, 0, 0, -1)
  242. local player = game.Players.LocalPlayer
  243.  
  244.  
  245. local chara = workspace:WaitForChild(player.Name)
  246. local human = chara.Humanoid
  247. local neck = Instance.new("Weld",char)
  248. neck.Part0 = char.Torso
  249. neck.Part1 = char.Head
  250. neck.C0 = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  251. local human2 = Instance.new("Weld",char)
  252. human2.Part0 = char.HumanoidRootPart
  253. human2.Part1 = char.Torso
  254. human2co = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  255. necc = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  256. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  257. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  258. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  259. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  260. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  261. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  262. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  263. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  264. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  265. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  266. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  267. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  268. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  269. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
  270. local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  271. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
  272. local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  273. rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  274. rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
  275. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
  276. cananimate = true
  277. pose = "Standing"
  278. local speed = 0
  279.  
  280. char.Humanoid.Running:connect(function(s)
  281. speed = s
  282. end)
  283.  
  284. local update = game:GetService("RunService")
  285. update.RenderStepped:connect(function()
  286. local ray = Ray.new(chara.Torso.Position, (chara.Torso.Position - Vector3.new(0,9999999,0)).unit * 300)
  287. local p, position = game.Workspace:FindPartOnRay(ray, char, true, false)
  288. local dis = (chara.Torso.Position - position).magnitude
  289. if dis > 3.8 and chara.Torso.Velocity.Y > 0 then
  290. pose = "Jumping"
  291. end
  292. if dis> 3.8 and chara.Torso.Velocity.Y < 0 then
  293. pose = "Falling"
  294. end
  295. if dis < 3.8 and speed == 0 then
  296. pose = "Standing"
  297. end
  298. if dis < 3.8 and speed > 0 then
  299. pose = "Walking"
  300. end
  301. end)
  302. canuse = true
  303.  
  304. function oneuptext(whom)
  305. local oneup = Instance.new("Sound",whom)
  306. oneup.SoundId = "rbxassetid://327081831"
  307. oneup.Volume = 4
  308. oneup:Play()
  309. Player = game.Players.LocalPlayer
  310. Character = Player.Character
  311. local txt = Instance.new("BillboardGui", whom)
  312. txt.Adornee = whom.Head
  313. txt.Name = "_status"
  314. txt.Size = UDim2.new(2, 0, 1.2, 0)
  315. txt.StudsOffset = Vector3.new(-9, 8, 0)
  316. local text = Instance.new("TextLabel", txt)
  317. text.Size = UDim2.new(10, 0, 7, 0)
  318. text.FontSize = "Size24"
  319. text.TextScaled = true
  320. text.TextTransparency = 0
  321. text.BackgroundTransparency = 1
  322. text.TextTransparency = 0
  323. text.TextStrokeTransparency = 0
  324. text.Font = "Arcade"
  325. text.TextStrokeColor3 = BrickColor.new("Lime green").Color
  326. text.Text = "1UP"
  327. for i = 1,70 do
  328. txt.StudsOffset = txt.StudsOffset + Vector3.new(0,0.01,0)
  329. text.Text = "1UP"
  330. game:GetService("RunService").RenderStepped:wait()
  331. end
  332. txt:Destroy()
  333. end
  334. function Build_Question_Block()
  335. if canuse then
  336. canuse = false
  337. cananimate = false
  338. char.Humanoid.WalkSpeed = 0
  339. char.Humanoid.JumpPower = 0
  340. wait(1)
  341. chanceofpowerup = math.random(1,3)
  342. hitpowerup = false
  343. local question = Instance.new("Part",workspace)
  344. tix = question
  345. tix.CanCollide = true
  346. tix.Transparency = 1
  347. tix.Anchored = true
  348. tix.CFrame = char["Right Arm"].CFrame + Vector3.new(5,0,0)
  349. local billboard = Instance.new("BillboardGui",tix)
  350. billboard.Size = UDim2.new(5, 0,5, 0)
  351. billboard.MaxDistance = "inf"
  352. billboard.Adornee = tix
  353. billboard.ZIndexBehavior = "Global"
  354. local image = Instance.new("ImageLabel",billboard)
  355. image.Size = UDim2.new(1, 3, 1, 3)
  356. image.LayoutOrder = 0
  357. image.BorderSizePixel = 0
  358. image.BackgroundTransparency = 1
  359. image.ZIndex = 1
  360. image.Image = "http://www.roblox.com/asset/?id=235430019"
  361. coroutine.wrap(function()
  362. while true do --Loop
  363. if not hitpowerup then
  364. image.Image = "http://www.roblox.com/asset/?id=235430019" --second texture
  365. wait(0.075) --wait 1 second, you can change this and make it different for every one
  366. image.Image = "http://www.roblox.com/asset/?id=235430019"
  367. wait(0.075)
  368. image.Image = "http://www.roblox.com/asset/?id=235430019"
  369. wait(0.075)
  370. image.Image = "http://www.roblox.com/asset/?id=235430065"
  371. wait(0.075)
  372. image.Image = "http://www.roblox.com/asset/?id=235430065" --Insert decal's first texture
  373. wait(0.075)
  374. image.Image = "http://www.roblox.com/asset/?id=235430065" --second texture
  375. wait(0.075) --wait 1 second, you can change this and make it different for every one
  376. image.Image = "http://www.roblox.com/asset/?id=235430115"
  377. wait(0.075)
  378. image.Image = "http://www.roblox.com/asset/?id=235430115"
  379. wait(0.075)
  380. image.Image = "http://www.roblox.com/asset/?id=235430115"
  381. wait(0.075)
  382. image.Image = "http://www.roblox.com/asset/?id=235430019" --Insert decal's first texture
  383. wait(0.075)
  384. image.Image = "http://www.roblox.com/asset/?id=235430019" --second texture
  385. wait(0.075) --wait 1 second, you can change this and make it different for every one
  386. image.Image = "http://www.roblox.com/asset/?id=235430019"
  387. wait(0.075)
  388. image.Image = "http://www.roblox.com/asset/?id=235430065"
  389. wait(0.075)
  390. image.Image = "http://www.roblox.com/asset/?id=235430065"
  391. wait(0.075)
  392. image.Image = "http://www.roblox.com/asset/?id=235430065" --Insert decal's first texture
  393. wait(0.075)
  394. image.Image = "http://www.roblox.com/asset/?id=235430115" --second texture
  395. wait(0.075) --wait 1 second, you can change this and make it different for every one
  396. image.Image = "http://www.roblox.com/asset/?id=235430115"
  397. wait(0.075)
  398. image.Image = "http://www.roblox.com/asset/?id=235430115"
  399. end
  400. if hitpowerup then
  401. wait()
  402. image.Image = "http://www.roblox.com/asset/?id=13953952"
  403. end
  404. end
  405.  
  406.  
  407.  
  408. end)()
  409. image.ImageTransparency = 1
  410. for i = 1,10 do
  411. for i = 0,1 ,0.05 do
  412. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 1.22890162, 0.114518166, 1, 0, 0, 0, -0.842489541, 0.53871268, 0, -0.53871268, -0.842489541),i)
  413. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  414. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  415. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  416. human2.C0 = human2.C0:lerp(human2co,i)
  417. neck.C0 = neck.C0:lerp(necc,i)
  418. game:GetService("RunService").RenderStepped:wait()
  419. end
  420. Build:Play()
  421. image.ImageTransparency = image.ImageTransparency - 0.1
  422. for i = 0,1 ,0.05 do
  423. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.194858074, -0.962414742, 1, 0, 0, 0, 0.216684923, -0.976241648, 0, 0.976241648, 0.216684937),i)
  424. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  425. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  426. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  427. human2.C0 = human2.C0:lerp(human2co,i)
  428. neck.C0 = neck.C0:lerp(necc,i)
  429. game:GetService("RunService").RenderStepped:wait()
  430. end
  431. end
  432. cananimate = true
  433. canuse = true
  434. if chanceofpowerup == 1 then
  435. hitpowerup = true
  436. local powerup = Instance.new("Part",char)
  437. powerup.CanCollide = true
  438. powerup.Transparency = 1
  439. powerup.Anchored = true
  440. powerup.CFrame = tix.CFrame
  441. local billboard = Instance.new("BillboardGui",powerup)
  442. billboard.Size = UDim2.new(5, 0,5, 0)
  443. billboard.MaxDistance = "inf"
  444. billboard.Adornee = tix
  445. billboard.ZIndexBehavior = "Global"
  446. billboard.Adornee = powerup
  447. local image = Instance.new("ImageLabel",billboard)
  448. image.Size = UDim2.new(1, 3, 1, 3)
  449. image.LayoutOrder = 0
  450. image.BorderSizePixel = 0
  451. image.BackgroundTransparency = 1
  452. image.ZIndex = 1
  453. image.Image = "http://www.roblox.com/asset/?id=13973668"
  454. for i = 1,80 do
  455. powerup.CFrame = powerup.CFrame + Vector3.new(0,0.07,0)
  456. game:GetService("RunService").RenderStepped:wait()
  457. end
  458. powerup.Anchored = false
  459. powerup.Touched:connect(function(p)
  460. local hum = p.Parent:FindFirstChildOfClass("Humanoid")
  461. if hum then
  462. local PowerupGet = Instance.new("Sound",hum.Parent)
  463. PowerupGet.Volume = 4
  464. PowerupGet.SoundId = "rbxassetid://182755256"
  465. hum.Health = math.huge
  466. hum.MaxHealth = math.huge
  467. PowerupGet:Play()
  468. powerup:Destroy()
  469. wait(1)
  470. if hum.Parent.Name == char.Name then
  471. Mario_Maker_Music:Pause()
  472. collectedstar = true
  473. end
  474. local music = Instance.new("Sound",hum.Parent)
  475. music.SoundId = "rbxassetid://149009993"
  476. music.Volume = 4
  477. music:Play()
  478. local touchy = hum.Parent.Head.Touched:connect(function(part)
  479. local human = part.Parent:FindFirstChildOfClass("Humanoid")
  480. if human and human.Name ~= char.Name and human.Name ~= human.Parent.Name and human.Parent.Name ~= "Theamazingnater" then
  481. human.Health = 0
  482. end
  483. end)
  484. while music.IsPlaying do
  485. wait()
  486. hum.Health = math.huge
  487. hum.MaxHealth = math.huge
  488.  
  489. end
  490. touchy:Disconnect()
  491. hum.Health = 100
  492. hum.MaxHealth = 100
  493. end
  494. if hum.Parent.Name == char.Name then
  495. Mario_Maker_Music:Resume()
  496. collectedstar = false
  497. end
  498. end)
  499. game:GetService("Debris"):AddItem(powerup,10)
  500. end
  501. if chanceofpowerup == 2 then
  502. hitpowerup = true
  503. local powerup = Instance.new("Part",char)
  504. powerup.CanCollide = true
  505. powerup.Transparency = 1
  506. powerup.Anchored = true
  507. powerup.CFrame = tix.CFrame
  508. local billboard = Instance.new("BillboardGui",powerup)
  509. billboard.Size = UDim2.new(5, 0,5, 0)
  510. billboard.MaxDistance = "inf"
  511. billboard.Adornee = tix
  512. billboard.ZIndexBehavior = "Global"
  513. billboard.Adornee = powerup
  514. local image = Instance.new("ImageLabel",billboard)
  515. image.Size = UDim2.new(1, 3, 1, 3)
  516. image.LayoutOrder = 0
  517. image.BorderSizePixel = 0
  518. image.BackgroundTransparency = 1
  519. image.ZIndex = 1
  520. image.Image = "rbxassetid://135752403"
  521. for i = 1,80 do
  522. powerup.CFrame = powerup.CFrame + Vector3.new(0,0.07,0)
  523. game:GetService("RunService").RenderStepped:wait()
  524. end
  525. powerup.Anchored = false
  526. powerup.Touched:connect(function(p)
  527. local hum = p.Parent:FindFirstChildOfClass("Humanoid")
  528. if hum then
  529. local PowerupGet = Instance.new("Sound",hum.Parent)
  530. PowerupGet.Volume = 4
  531. PowerupGet.SoundId = "rbxassetid://182755256"
  532. hum.Health = math.huge
  533. hum.MaxHealth = math.huge
  534. PowerupGet:Play()
  535. powerup:Destroy()
  536. end
  537. end)
  538. game:GetService("Debris"):AddItem(powerup,10)
  539. end
  540.  
  541.  
  542. if chanceofpowerup == 3 then
  543. hitpowerup = true
  544. local powerup = Instance.new("Part",char)
  545. powerup.CanCollide = true
  546. powerup.Transparency = 1
  547. powerup.Anchored = true
  548. powerup.CFrame = tix.CFrame
  549. local billboard = Instance.new("BillboardGui",powerup)
  550. billboard.Size = UDim2.new(5, 0,5, 0)
  551. billboard.MaxDistance = "inf"
  552. billboard.Adornee = tix
  553. billboard.ZIndexBehavior = "Global"
  554. billboard.Adornee = powerup
  555. local image = Instance.new("ImageLabel",billboard)
  556. image.Size = UDim2.new(1, 3, 1, 3)
  557. image.LayoutOrder = 0
  558. image.BorderSizePixel = 0
  559. image.BackgroundTransparency = 1
  560. image.ZIndex = 1
  561. image.Image = "http://www.roblox.com/asset/?id=368989816"
  562. for i = 1,80 do
  563. powerup.CFrame = powerup.CFrame + Vector3.new(0,0.07,0)
  564. game:GetService("RunService").RenderStepped:wait()
  565. end
  566. powerup.Anchored = false
  567. powerup.Touched:connect(function(p)
  568. local hum = p.Parent:FindFirstChildOfClass("Humanoid")
  569. if hum then
  570. powerup:Destroy()
  571. oneuptext(hum.Parent)
  572.  
  573. end
  574. end)
  575. game:GetService("Debris"):AddItem(powerup,10)
  576. char.Humanoid.WalkSpeed = 16
  577. char.Humanoid.JumpPower = 50
  578. game:GetService("Debris"):AddItem(tix,10)
  579. end
  580. char.Humanoid.WalkSpeed = 16
  581. char.Humanoid.JumpPower = 50
  582. game:GetService("Debris"):AddItem(tix,10)
  583. end
  584. end
  585. function Build_Empty_Block()
  586. if canuse then
  587. canuse = false
  588. cananimate = false
  589. char.Humanoid.WalkSpeed = 0
  590. char.Humanoid.JumpPower = 0
  591. wait(1)
  592. local question = Instance.new("Part",char)
  593. tix = question
  594. tix.CanCollide = true
  595. tix.Transparency = 1
  596. tix.Anchored = true
  597. tix.CFrame = char["Right Arm"].CFrame + Vector3.new(5,0,0)
  598. local billboard = Instance.new("BillboardGui",tix)
  599. billboard.Size = UDim2.new(5, 0,5, 0)
  600. billboard.MaxDistance = "inf"
  601. billboard.Adornee = tix
  602. billboard.ZIndexBehavior = "Global"
  603. local image = Instance.new("ImageLabel",billboard)
  604. image.Size = UDim2.new(1, 3, 1, 3)
  605. image.LayoutOrder = 0
  606. image.BorderSizePixel = 0
  607. image.BackgroundTransparency = 1
  608. image.ZIndex = 1
  609. image.Image = "http://www.roblox.com/asset/?id=13953952"
  610.  
  611. image.ImageTransparency = 1
  612. for i = 1,10 do
  613. for i = 0,1 ,0.05 do
  614. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 1.22890162, 0.114518166, 1, 0, 0, 0, -0.842489541, 0.53871268, 0, -0.53871268, -0.842489541),i)
  615. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  616. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  617. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  618. human2.C0 = human2.C0:lerp(human2co,i)
  619. neck.C0 = neck.C0:lerp(necc,i)
  620. game:GetService("RunService").RenderStepped:wait()
  621. end
  622. Build:Play()
  623. image.ImageTransparency = image.ImageTransparency - 0.1
  624. for i = 0,1 ,0.05 do
  625. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.194858074, -0.962414742, 1, 0, 0, 0, 0.216684923, -0.976241648, 0, 0.976241648, 0.216684937),i)
  626. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  627. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  628. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  629. human2.C0 = human2.C0:lerp(human2co,i)
  630. neck.C0 = neck.C0:lerp(necc,i)
  631. game:GetService("RunService").RenderStepped:wait()
  632. end
  633. end
  634. cananimate = true
  635. canuse = true
  636. char.Humanoid.WalkSpeed = 16
  637. char.Humanoid.JumpPower = 50
  638. game:GetService("Debris"):AddItem(question,10)
  639. end
  640.  
  641. end
  642. function Build_Note_Block()
  643. if canuse then
  644. canuse = false
  645. cananimate = false
  646. char.Humanoid.WalkSpeed = 0
  647. char.Humanoid.JumpPower = 0
  648. wait(1)
  649. local question = Instance.new("Part",char)
  650. tix = question
  651. tix.CanCollide = true
  652. tix.Transparency = 1
  653. tix.Anchored = true
  654. tix.CFrame = char["Right Arm"].CFrame + Vector3.new(5,0,0)
  655. local billboard = Instance.new("BillboardGui",tix)
  656. billboard.Size = UDim2.new(5, 0,5, 0)
  657. billboard.MaxDistance = "inf"
  658. billboard.Adornee = tix
  659. billboard.ZIndexBehavior = "Global"
  660. local image = Instance.new("ImageLabel",billboard)
  661. image.Size = UDim2.new(1, 3, 1, 3)
  662. image.LayoutOrder = 0
  663. image.BorderSizePixel = 0
  664. image.BackgroundTransparency = 1
  665. image.ZIndex = 1
  666. image.Image = "http://www.roblox.com/asset/?id=148950611"
  667. coroutine.wrap(function()
  668. while true do
  669. image.Image = "http://www.roblox.com/asset/?id=148950630"
  670. wait(0.05)
  671. image.Image = "http://www.roblox.com/asset/?id=148950666"
  672. wait(0.05)
  673. image.Image = "http://www.roblox.com/asset/?id=148950692"
  674. wait(0.05)
  675. image.Image = "http://www.roblox.com/asset/?id=148950711"
  676. wait(0.05)
  677. image.Image = "http://www.roblox.com/asset/?id=148950725"
  678. wait(0.05)
  679. image.Image = "http://www.roblox.com/asset/?id=148950611"
  680. end
  681. end)()
  682. question.Touched:connect(function(p)
  683. local human = p.Parent:FindFirstChildOfClass("Humanoid")
  684. if human then
  685. human.Parent.Head.Velocity = human.Parent.Head.CFrame.upVector * 100
  686. end
  687. end)
  688.  
  689. image.ImageTransparency = 1
  690. for i = 1,10 do
  691. for i = 0,1 ,0.05 do
  692. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 1.22890162, 0.114518166, 1, 0, 0, 0, -0.842489541, 0.53871268, 0, -0.53871268, -0.842489541),i)
  693. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  694. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  695. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  696. human2.C0 = human2.C0:lerp(human2co,i)
  697. neck.C0 = neck.C0:lerp(necc,i)
  698. game:GetService("RunService").RenderStepped:wait()
  699. end
  700. Build:Play()
  701. image.ImageTransparency = image.ImageTransparency - 0.1
  702. for i = 0,1 ,0.05 do
  703. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.194858074, -0.962414742, 1, 0, 0, 0, 0.216684923, -0.976241648, 0, 0.976241648, 0.216684937),i)
  704. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  705. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  706. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  707. human2.C0 = human2.C0:lerp(human2co,i)
  708. neck.C0 = neck.C0:lerp(necc,i)
  709. game:GetService("RunService").RenderStepped:wait()
  710. end
  711. end
  712. cananimate = true
  713. canuse = true
  714. char.Humanoid.WalkSpeed = 16
  715. char.Humanoid.JumpPower = 50
  716. game:GetService("Debris"):AddItem(question,10)
  717. end
  718.  
  719. end
  720. function Build_Brick_Block()
  721. if canuse then
  722. canuse = false
  723. cananimate = false
  724. char.Humanoid.WalkSpeed = 0
  725. char.Humanoid.JumpPower = 0
  726. wait(1)
  727. local question = Instance.new("Part",char)
  728. tix = question
  729. tix.CanCollide = true
  730. tix.Transparency = 1
  731. tix.Anchored = true
  732. tix.CFrame = char["Right Arm"].CFrame + Vector3.new(5,0,0)
  733. local billboard = Instance.new("BillboardGui",tix)
  734. billboard.Size = UDim2.new(5, 0,5, 0)
  735. billboard.MaxDistance = "inf"
  736. billboard.Adornee = tix
  737. billboard.ZIndexBehavior = "Global"
  738. local image = Instance.new("ImageLabel",billboard)
  739. image.Size = UDim2.new(1, 3, 1, 3)
  740. image.LayoutOrder = 0
  741. image.BorderSizePixel = 0
  742. image.BackgroundTransparency = 1
  743. image.ZIndex = 1
  744. image.Image = "http://www.roblox.com/asset/?id=13943715"
  745.  
  746. image.ImageTransparency = 1
  747. for i = 1,10 do
  748. for i = 0,1 ,0.05 do
  749. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 1.22890162, 0.114518166, 1, 0, 0, 0, -0.842489541, 0.53871268, 0, -0.53871268, -0.842489541),i)
  750. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  751. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  752. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  753. human2.C0 = human2.C0:lerp(human2co,i)
  754. neck.C0 = neck.C0:lerp(necc,i)
  755. game:GetService("RunService").RenderStepped:wait()
  756. end
  757. Build:Play()
  758. image.ImageTransparency = image.ImageTransparency - 0.1
  759. for i = 0,1 ,0.05 do
  760. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.194858074, -0.962414742, 1, 0, 0, 0, 0.216684923, -0.976241648, 0, 0.976241648, 0.216684937),i)
  761. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  762. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  763. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  764. human2.C0 = human2.C0:lerp(human2co,i)
  765. neck.C0 = neck.C0:lerp(necc,i)
  766. game:GetService("RunService").RenderStepped:wait()
  767. end
  768. end
  769. cananimate = true
  770. canuse = true
  771. char.Humanoid.WalkSpeed = 16
  772. char.Humanoid.JumpPower = 50
  773. game:GetService("Debris"):AddItem(question,10)
  774. end
  775.  
  776. end
  777. function Build_POW_Block()
  778. if canuse then
  779. canuse = false
  780. cananimate = false
  781. char.Humanoid.WalkSpeed = 0
  782. char.Humanoid.JumpPower = 0
  783. wait(1)
  784. local question = Instance.new("Part",char)
  785. tix = question
  786. tix.CanCollide = true
  787. tix.Transparency = 1
  788. tix.Anchored = true
  789. tix.CFrame = char["Right Arm"].CFrame + Vector3.new(5,0,0)
  790. local billboard = Instance.new("BillboardGui",tix)
  791. billboard.Size = UDim2.new(5, 0,5, 0)
  792. billboard.MaxDistance = "inf"
  793. billboard.Adornee = tix
  794. billboard.ZIndexBehavior = "Global"
  795. local image = Instance.new("ImageLabel",billboard)
  796. image.Size = UDim2.new(1, 3, 1, 3)
  797. image.LayoutOrder = 0
  798. image.BorderSizePixel = 0
  799. image.BackgroundTransparency = 1
  800. image.ZIndex = 1
  801. image.Image = "http://www.roblox.com/asset/?id=62000631"
  802.  
  803. image.ImageTransparency = 1
  804. for i = 1,10 do
  805. for i = 0,1 ,0.05 do
  806. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 1.22890162, 0.114518166, 1, 0, 0, 0, -0.842489541, 0.53871268, 0, -0.53871268, -0.842489541),i)
  807. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  808. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  809. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  810. human2.C0 = human2.C0:lerp(human2co,i)
  811. neck.C0 = neck.C0:lerp(necc,i)
  812. game:GetService("RunService").RenderStepped:wait()
  813. end
  814. Build:Play()
  815. image.ImageTransparency = image.ImageTransparency - 0.1
  816. for i = 0,1 ,0.05 do
  817. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.194858074, -0.962414742, 1, 0, 0, 0, 0.216684923, -0.976241648, 0, 0.976241648, 0.216684937),i)
  818. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  819. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  820. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  821. human2.C0 = human2.C0:lerp(human2co,i)
  822. neck.C0 = neck.C0:lerp(necc,i)
  823. game:GetService("RunService").RenderStepped:wait()
  824. end
  825. end
  826. image.Image = "http://www.roblox.com/asset/?id=294060337"
  827. for i,v in pairs(workspace:GetChildren()) do
  828. if v.ClassName == "Model" and v.Name ~= plr.Name then
  829. local hum = v:FindFirstChildOfClass("Humanoid")
  830. if hum then
  831. hum.PlatformStand = true
  832. wait(0.5)
  833. hum.PlatformStand = false
  834. end
  835. end
  836. end
  837. Boom:Play()
  838. wait(1)
  839. cananimate = true
  840. canuse = true
  841. char.Humanoid.WalkSpeed = 16
  842. char.Humanoid.JumpPower = 50
  843. question:Destroy()
  844. end
  845.  
  846. end
  847. mouse = plr:GetMouse()
  848. mouse.KeyDown:connect(function(k)
  849. if k == "q" then
  850. Build_Question_Block()
  851. end
  852. if k == "e" then
  853. Build_Empty_Block()
  854. end
  855. if k == "r" then
  856. Build_Note_Block()
  857. end
  858. if k == "t" then
  859. Build_Brick_Block()
  860. end
  861. if k == "y" then
  862. Build_POW_Block()
  863. end
  864. end)
  865. Player = game.Players.LocalPlayer
  866. Character = Player.Character
  867. local txt = Instance.new("BillboardGui", Character)
  868. txt.Adornee = Character.Head
  869. txt.Name = "_status"
  870. txt.Size = UDim2.new(2, 0, 1.2, 0)
  871. txt.StudsOffset = Vector3.new(-9, 8, 0)
  872. local text = Instance.new("TextLabel", txt)
  873. text.Size = UDim2.new(10, 0, 7, 0)
  874. text.FontSize = "Size24"
  875. text.TextScaled = true
  876. text.TextTransparency = 0
  877. text.BackgroundTransparency = 1
  878. text.TextTransparency = 0
  879. text.TextStrokeTransparency = 0
  880. text.Font = "Arcade"
  881. text.TextStrokeColor3 = char.Torso.BrickColor.Color
  882. text.Text = "Mario Maker"
  883.  
  884. while true do
  885. wait()
  886. if pose == "Standing" and cananimate then
  887. walking = false
  888. for i = 0,1 , 0.05 do
  889. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 2.38418579e-07, 0, 0.901208401, -0.433386177, 0, 0.433385074, 0.901205897, 0, 0, 0, 1),i)
  890. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.58996058, -0.0167350769, 9.53674316e-07, 0.933032632, 0.359789908, 0, -0.359790921, 0.933025062, 0, 0, 0, 1),i)
  891. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  892. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
  893. human2.C0 = human2.C0:lerp(human2co,i)
  894. neck.C0 = neck.C0:lerp(necc,i)
  895. update.RenderStepped:wait()
  896. end
  897. end
  898. if pose == "Walking" and cananimate then
  899. walking = true
  900. for i = 0,1 ,0.05 do
  901. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.168842316, -0.374614239, 1, 0, 0, 0, 0.662306964, -0.74923259, 0, 0.74923259, 0.662307084),i)
  902. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.12597847, 0.331827164, 1, 0, 0, 0, 0.748035073, 0.663659215, 0, -0.663659275, 0.748035014),i)
  903. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i)
  904. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i)
  905. human2.C0 = human2.C0:lerp(human2co,i)
  906. neck.C0 = neck.C0:lerp(necc,i)
  907. game:GetService("RunService").RenderStepped:wait()
  908. end
  909. walking = true
  910. for i = 0,1 ,0.05 do
  911. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i)
  912. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i)
  913. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.216003418, 0.411518574, 1, 0, 0, 0, 0.567983389, 0.823040009, 0, -0.823040009, 0.567983389),i)
  914. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.215018272, -0.41083622, 1, 0, 0, 0, 0.569954693, -0.821676135, 0, 0.821676135, 0.569954753),i)
  915. human2.C0 = human2.C0:lerp(human2co,i)
  916. neck.C0 = neck.C0:lerp(necc,i)
  917. game:GetService("RunService").RenderStepped:wait()
  918. end
  919. walking = true
  920. end
  921. if pose == "Jumping" and cananimate then
  922. walking = false
  923. for i = 0,1 , 0.05 do
  924. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.66472816, 0.166806221, 0, 0.840905726, -0.541181803, 0, 0.541181803, 0.840905726, 0, 0, 0, 1),i)
  925. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.69600487, 0.110276461, 0, 0.871529698, 0.490342826, 0, -0.490342826, 0.871529698, 0, 0, 0, 1),i)
  926. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.3247503, -0.419755459, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  927. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  928. human2.C0 = human2.C0:lerp(human2co,i)
  929. neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 0.917574883, -0.397562951, 0, 0.397562951, 0.917574883),i)
  930. update.RenderStepped:wait()
  931. end
  932. end
  933. if pose == "Falling" and cananimate then
  934. walking = false
  935. for i = 0,1 , 0.05 do
  936. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.00721169, 0.966965914, 0, -0.554754853, -0.832013845, 0, 0.832013845, -0.554754853, 0, 0, 0, 1),i)
  937. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.87815094, 0.913155079, 0, -0.494452, 0.869204998, 0, -0.869204998, -0.494452, 0, 0, 0, 1),i)
  938. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  939. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  940. human2.C0 = human2.C0:lerp(human2co,i)
  941. neck.C0 = neck.C0:lerp(CFrame.new(0, 1.50154519, -0.248991966, 1, 0, 0, 0, 0.852542579, 0.522657752, 0, -0.522657752, 0.852542579),i)
  942. update.RenderStepped:wait()
  943. end
  944. end
  945. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement