Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code V2 by Mokiros")
- local RealPlayer = RealPlayer
- script.Parent = RealPlayer.Character
- --Fake event to make stuff like Mouse.KeyDown work
- local Disconnect_Function = function(this)
- this[1].Functions[this[2]] = nil
- end
- local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
- local FakeEvent_Metatable = {__index={
- Connect = function(this,f)
- local i = tostring(math.random(0,10000))
- while this.Functions[i] do
- i = tostring(math.random(0,10000))
- end
- this.Functions[i] = f
- return setmetatable({this,i},Disconnect_Metatable)
- end
- }}
- FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
- local function fakeEvent()
- return setmetatable({Functions={}},FakeEvent_Metatable)
- end
- --Creating fake input objects with fake variables
- local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- FakeMouse.keyUp = FakeMouse.KeyUp
- FakeMouse.keyDown = FakeMouse.KeyDown
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function TriggerEvent(self,ev,...)
- for _,f in pairs(self[ev].Functions) do
- f(...)
- end
- end
- FakeMouse.TriggerEvent = TriggerEvent
- UIS.TriggerEvent = TriggerEvent
- --Client communication
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=RealPlayer then return end
- FakeMouse.Target = io.Target
- FakeMouse.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
- local Mouse = owner:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,RobloxHandled)
- if RobloxHandled then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data every second frame, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- local HB = game:GetService("RunService").Heartbeat
- while true do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- --Wait 2 frames
- for i=1,2 do
- HB:Wait()
- end
- end]==],script)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local RealGame = game
- --Metatable for fake service
- local FakeService_Metatable = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
- return setmetatable(t,FakeService_Metatable)
- end
- --Fake game object
- local FakeGame = {
- GetService = function(self,s)
- return rawget(self,s) or RealGame:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = RealGame:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
- FakeGame.service = FakeGame.GetService
- FakeService(FakeGame,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = FakeGame,FakeGame.Players.LocalPlayer
- end
- plr = game.Players.LocalPlayer
- repeat wait() until plr.Character
- char = plr.Character
- -- Mario Maker by Theamazingnater
- collectedstar = false
- local Mario_Maker_Music = Instance.new("Sound",char)
- Mario_Maker_Music.SoundId = "rbxassetid://303511460"
- Mario_Maker_Music.Volume = 4
- Mario_Maker_Music.Looped = true
- Mario_Maker_Music:Play()
- Mario_Maker_Music.Name = "Music lololol"
- local Build = Instance.new("Sound",char)
- Build.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Build.Volume = 4
- local Boom = Instance.new("Sound",char)
- Boom.SoundId = "rbxassetid://833855896"
- Boom.Volume = 4
- coroutine.wrap(function()
- while true do
- wait()
- Mario_Maker_Music.SoundId = "rbxassetid://303511460"
- Mario_Maker_Music.Volume = 4
- Mario_Maker_Music.Looped = true
- if not collectedstar then
- Mario_Maker_Music:Resume()
- end
- Mario_Maker_Music.Parent = char
- Mario_Maker_Music.Name = "Music lololol"
- Build.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
- Build.Volume = 4
- Build.Parent = char
- Boom.SoundId = "rbxassetid://833855896"
- Boom.Volume = 4
- Boom.Parent = char
- end
- end)()
- print("Mario Maker script by Theamazingnater")
- print("Current stuff you can build:" .. [[
- Question Block
- Brick Block
- Note Block
- Empty Block
- POW Block
- ]])
- print("More stuff will be added soon!" .. " Have fun!")
- print("Changelog 7/2/2018: " .. [[
- Added the POW Block (trips players for half a second)
- Added a 1UP powerup to the Question Block
- ]])
- -- // Character Customization \\ --
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Accessory" or v.ClassName == "Hat" then
- v:Destroy()
- end
- end
- local hat = Instance.new("Part",char)
- hat.CanCollide = false
- local mesh = Instance.new("FileMesh",hat)
- mesh.MeshId = "http://www.roblox.com/asset/?id=1073659"
- mesh.TextureId = "http://www.roblox.com/asset/?id=112346870"
- local weld = Instance.new("Weld",hat)
- weld.Part0 = hat
- weld.Part1 = char.Head
- weld.C0 = CFrame.new(0, -0.749996185, 0.149999619, 1, 0, 0, 0, 0.999994755, 0, 0, 0, 1)
- local hammer = Instance.new("Part",char)
- hammer.CanCollide = false
- local mesh = Instance.new("FileMesh",hammer)
- mesh.MeshId = "http://www.roblox.com/asset/?id=16198309"
- mesh.TextureId = "http://www.roblox.com/asset/?id=16198294"
- mesh.Scale = mesh.Scale + Vector3.new(0.2,0.2,0.2)
- local weld = Instance.new("Weld",hammer)
- weld.Part0 = hammer
- weld.Part1 = char["Right Arm"]
- weld.C0 = CFrame.new(0.999994636, 0, -0.5, 0, 0.999994516, 0, 1, 0, 0, 0, 0, -1)
- local player = game.Players.LocalPlayer
- local chara = workspace:WaitForChild(player.Name)
- local human = chara.Humanoid
- local neck = Instance.new("Weld",char)
- neck.Part0 = char.Torso
- neck.Part1 = char.Head
- neck.C0 = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local human2 = Instance.new("Weld",char)
- human2.Part0 = char.HumanoidRootPart
- human2.Part1 = char.Torso
- human2co = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- necc = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
- local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
- local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
- local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
- lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
- local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
- llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
- llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
- local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
- game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
- local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
- rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
- rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
- cananimate = true
- pose = "Standing"
- local speed = 0
- char.Humanoid.Running:connect(function(s)
- speed = s
- end)
- local update = game:GetService("RunService")
- update.RenderStepped:connect(function()
- local ray = Ray.new(chara.Torso.Position, (chara.Torso.Position - Vector3.new(0,9999999,0)).unit * 300)
- local p, position = game.Workspace:FindPartOnRay(ray, char, true, false)
- local dis = (chara.Torso.Position - position).magnitude
- if dis > 3.8 and chara.Torso.Velocity.Y > 0 then
- pose = "Jumping"
- end
- if dis> 3.8 and chara.Torso.Velocity.Y < 0 then
- pose = "Falling"
- end
- if dis < 3.8 and speed == 0 then
- pose = "Standing"
- end
- if dis < 3.8 and speed > 0 then
- pose = "Walking"
- end
- end)
- canuse = true
- function oneuptext(whom)
- local oneup = Instance.new("Sound",whom)
- oneup.SoundId = "rbxassetid://327081831"
- oneup.Volume = 4
- oneup:Play()
- Player = game.Players.LocalPlayer
- Character = Player.Character
- local txt = Instance.new("BillboardGui", whom)
- txt.Adornee = whom.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Arcade"
- text.TextStrokeColor3 = BrickColor.new("Lime green").Color
- text.Text = "1UP"
- for i = 1,70 do
- txt.StudsOffset = txt.StudsOffset + Vector3.new(0,0.01,0)
- text.Text = "1UP"
- game:GetService("RunService").RenderStepped:wait()
- end
- txt:Destroy()
- end
- function Build_Question_Block()
- if canuse then
- canuse = false
- cananimate = false
- char.Humanoid.WalkSpeed = 0
- char.Humanoid.JumpPower = 0
- wait(1)
- chanceofpowerup = math.random(1,3)
- hitpowerup = false
- local question = Instance.new("Part",workspace)
- tix = question
- tix.CanCollide = true
- tix.Transparency = 1
- tix.Anchored = true
- tix.CFrame = char["Right Arm"].CFrame + Vector3.new(5,0,0)
- local billboard = Instance.new("BillboardGui",tix)
- billboard.Size = UDim2.new(5, 0,5, 0)
- billboard.MaxDistance = "inf"
- billboard.Adornee = tix
- billboard.ZIndexBehavior = "Global"
- local image = Instance.new("ImageLabel",billboard)
- image.Size = UDim2.new(1, 3, 1, 3)
- image.LayoutOrder = 0
- image.BorderSizePixel = 0
- image.BackgroundTransparency = 1
- image.ZIndex = 1
- image.Image = "http://www.roblox.com/asset/?id=235430019"
- coroutine.wrap(function()
- while true do --Loop
- if not hitpowerup then
- image.Image = "http://www.roblox.com/asset/?id=235430019" --second texture
- wait(0.075) --wait 1 second, you can change this and make it different for every one
- image.Image = "http://www.roblox.com/asset/?id=235430019"
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430019"
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430065"
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430065" --Insert decal's first texture
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430065" --second texture
- wait(0.075) --wait 1 second, you can change this and make it different for every one
- image.Image = "http://www.roblox.com/asset/?id=235430115"
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430115"
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430115"
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430019" --Insert decal's first texture
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430019" --second texture
- wait(0.075) --wait 1 second, you can change this and make it different for every one
- image.Image = "http://www.roblox.com/asset/?id=235430019"
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430065"
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430065"
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430065" --Insert decal's first texture
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430115" --second texture
- wait(0.075) --wait 1 second, you can change this and make it different for every one
- image.Image = "http://www.roblox.com/asset/?id=235430115"
- wait(0.075)
- image.Image = "http://www.roblox.com/asset/?id=235430115"
- end
- if hitpowerup then
- wait()
- image.Image = "http://www.roblox.com/asset/?id=13953952"
- end
- end
- end)()
- image.ImageTransparency = 1
- for i = 1,10 do
- for i = 0,1 ,0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- Build:Play()
- image.ImageTransparency = image.ImageTransparency - 0.1
- for i = 0,1 ,0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- cananimate = true
- canuse = true
- if chanceofpowerup == 1 then
- hitpowerup = true
- local powerup = Instance.new("Part",char)
- powerup.CanCollide = true
- powerup.Transparency = 1
- powerup.Anchored = true
- powerup.CFrame = tix.CFrame
- local billboard = Instance.new("BillboardGui",powerup)
- billboard.Size = UDim2.new(5, 0,5, 0)
- billboard.MaxDistance = "inf"
- billboard.Adornee = tix
- billboard.ZIndexBehavior = "Global"
- billboard.Adornee = powerup
- local image = Instance.new("ImageLabel",billboard)
- image.Size = UDim2.new(1, 3, 1, 3)
- image.LayoutOrder = 0
- image.BorderSizePixel = 0
- image.BackgroundTransparency = 1
- image.ZIndex = 1
- image.Image = "http://www.roblox.com/asset/?id=13973668"
- for i = 1,80 do
- powerup.CFrame = powerup.CFrame + Vector3.new(0,0.07,0)
- game:GetService("RunService").RenderStepped:wait()
- end
- powerup.Anchored = false
- powerup.Touched:connect(function(p)
- local hum = p.Parent:FindFirstChildOfClass("Humanoid")
- if hum then
- local PowerupGet = Instance.new("Sound",hum.Parent)
- PowerupGet.Volume = 4
- PowerupGet.SoundId = "rbxassetid://182755256"
- hum.Health = math.huge
- hum.MaxHealth = math.huge
- PowerupGet:Play()
- powerup:Destroy()
- wait(1)
- if hum.Parent.Name == char.Name then
- Mario_Maker_Music:Pause()
- collectedstar = true
- end
- local music = Instance.new("Sound",hum.Parent)
- music.SoundId = "rbxassetid://149009993"
- music.Volume = 4
- music:Play()
- local touchy = hum.Parent.Head.Touched:connect(function(part)
- local human = part.Parent:FindFirstChildOfClass("Humanoid")
- if human and human.Name ~= char.Name and human.Name ~= human.Parent.Name and human.Parent.Name ~= "Theamazingnater" then
- human.Health = 0
- end
- end)
- while music.IsPlaying do
- wait()
- hum.Health = math.huge
- hum.MaxHealth = math.huge
- end
- touchy:Disconnect()
- hum.Health = 100
- hum.MaxHealth = 100
- end
- if hum.Parent.Name == char.Name then
- Mario_Maker_Music:Resume()
- collectedstar = false
- end
- end)
- game:GetService("Debris"):AddItem(powerup,10)
- end
- if chanceofpowerup == 2 then
- hitpowerup = true
- local powerup = Instance.new("Part",char)
- powerup.CanCollide = true
- powerup.Transparency = 1
- powerup.Anchored = true
- powerup.CFrame = tix.CFrame
- local billboard = Instance.new("BillboardGui",powerup)
- billboard.Size = UDim2.new(5, 0,5, 0)
- billboard.MaxDistance = "inf"
- billboard.Adornee = tix
- billboard.ZIndexBehavior = "Global"
- billboard.Adornee = powerup
- local image = Instance.new("ImageLabel",billboard)
- image.Size = UDim2.new(1, 3, 1, 3)
- image.LayoutOrder = 0
- image.BorderSizePixel = 0
- image.BackgroundTransparency = 1
- image.ZIndex = 1
- image.Image = "rbxassetid://135752403"
- for i = 1,80 do
- powerup.CFrame = powerup.CFrame + Vector3.new(0,0.07,0)
- game:GetService("RunService").RenderStepped:wait()
- end
- powerup.Anchored = false
- powerup.Touched:connect(function(p)
- local hum = p.Parent:FindFirstChildOfClass("Humanoid")
- if hum then
- local PowerupGet = Instance.new("Sound",hum.Parent)
- PowerupGet.Volume = 4
- PowerupGet.SoundId = "rbxassetid://182755256"
- hum.Health = math.huge
- hum.MaxHealth = math.huge
- PowerupGet:Play()
- powerup:Destroy()
- end
- end)
- game:GetService("Debris"):AddItem(powerup,10)
- end
- if chanceofpowerup == 3 then
- hitpowerup = true
- local powerup = Instance.new("Part",char)
- powerup.CanCollide = true
- powerup.Transparency = 1
- powerup.Anchored = true
- powerup.CFrame = tix.CFrame
- local billboard = Instance.new("BillboardGui",powerup)
- billboard.Size = UDim2.new(5, 0,5, 0)
- billboard.MaxDistance = "inf"
- billboard.Adornee = tix
- billboard.ZIndexBehavior = "Global"
- billboard.Adornee = powerup
- local image = Instance.new("ImageLabel",billboard)
- image.Size = UDim2.new(1, 3, 1, 3)
- image.LayoutOrder = 0
- image.BorderSizePixel = 0
- image.BackgroundTransparency = 1
- image.ZIndex = 1
- image.Image = "http://www.roblox.com/asset/?id=368989816"
- for i = 1,80 do
- powerup.CFrame = powerup.CFrame + Vector3.new(0,0.07,0)
- game:GetService("RunService").RenderStepped:wait()
- end
- powerup.Anchored = false
- powerup.Touched:connect(function(p)
- local hum = p.Parent:FindFirstChildOfClass("Humanoid")
- if hum then
- powerup:Destroy()
- oneuptext(hum.Parent)
- end
- end)
- game:GetService("Debris"):AddItem(powerup,10)
- char.Humanoid.WalkSpeed = 16
- char.Humanoid.JumpPower = 50
- game:GetService("Debris"):AddItem(tix,10)
- end
- char.Humanoid.WalkSpeed = 16
- char.Humanoid.JumpPower = 50
- game:GetService("Debris"):AddItem(tix,10)
- end
- end
- function Build_Empty_Block()
- if canuse then
- canuse = false
- cananimate = false
- char.Humanoid.WalkSpeed = 0
- char.Humanoid.JumpPower = 0
- wait(1)
- local question = Instance.new("Part",char)
- tix = question
- tix.CanCollide = true
- tix.Transparency = 1
- tix.Anchored = true
- tix.CFrame = char["Right Arm"].CFrame + Vector3.new(5,0,0)
- local billboard = Instance.new("BillboardGui",tix)
- billboard.Size = UDim2.new(5, 0,5, 0)
- billboard.MaxDistance = "inf"
- billboard.Adornee = tix
- billboard.ZIndexBehavior = "Global"
- local image = Instance.new("ImageLabel",billboard)
- image.Size = UDim2.new(1, 3, 1, 3)
- image.LayoutOrder = 0
- image.BorderSizePixel = 0
- image.BackgroundTransparency = 1
- image.ZIndex = 1
- image.Image = "http://www.roblox.com/asset/?id=13953952"
- image.ImageTransparency = 1
- for i = 1,10 do
- for i = 0,1 ,0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- Build:Play()
- image.ImageTransparency = image.ImageTransparency - 0.1
- for i = 0,1 ,0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- cananimate = true
- canuse = true
- char.Humanoid.WalkSpeed = 16
- char.Humanoid.JumpPower = 50
- game:GetService("Debris"):AddItem(question,10)
- end
- end
- function Build_Note_Block()
- if canuse then
- canuse = false
- cananimate = false
- char.Humanoid.WalkSpeed = 0
- char.Humanoid.JumpPower = 0
- wait(1)
- local question = Instance.new("Part",char)
- tix = question
- tix.CanCollide = true
- tix.Transparency = 1
- tix.Anchored = true
- tix.CFrame = char["Right Arm"].CFrame + Vector3.new(5,0,0)
- local billboard = Instance.new("BillboardGui",tix)
- billboard.Size = UDim2.new(5, 0,5, 0)
- billboard.MaxDistance = "inf"
- billboard.Adornee = tix
- billboard.ZIndexBehavior = "Global"
- local image = Instance.new("ImageLabel",billboard)
- image.Size = UDim2.new(1, 3, 1, 3)
- image.LayoutOrder = 0
- image.BorderSizePixel = 0
- image.BackgroundTransparency = 1
- image.ZIndex = 1
- image.Image = "http://www.roblox.com/asset/?id=148950611"
- coroutine.wrap(function()
- while true do
- image.Image = "http://www.roblox.com/asset/?id=148950630"
- wait(0.05)
- image.Image = "http://www.roblox.com/asset/?id=148950666"
- wait(0.05)
- image.Image = "http://www.roblox.com/asset/?id=148950692"
- wait(0.05)
- image.Image = "http://www.roblox.com/asset/?id=148950711"
- wait(0.05)
- image.Image = "http://www.roblox.com/asset/?id=148950725"
- wait(0.05)
- image.Image = "http://www.roblox.com/asset/?id=148950611"
- end
- end)()
- question.Touched:connect(function(p)
- local human = p.Parent:FindFirstChildOfClass("Humanoid")
- if human then
- human.Parent.Head.Velocity = human.Parent.Head.CFrame.upVector * 100
- end
- end)
- image.ImageTransparency = 1
- for i = 1,10 do
- for i = 0,1 ,0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- Build:Play()
- image.ImageTransparency = image.ImageTransparency - 0.1
- for i = 0,1 ,0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- cananimate = true
- canuse = true
- char.Humanoid.WalkSpeed = 16
- char.Humanoid.JumpPower = 50
- game:GetService("Debris"):AddItem(question,10)
- end
- end
- function Build_Brick_Block()
- if canuse then
- canuse = false
- cananimate = false
- char.Humanoid.WalkSpeed = 0
- char.Humanoid.JumpPower = 0
- wait(1)
- local question = Instance.new("Part",char)
- tix = question
- tix.CanCollide = true
- tix.Transparency = 1
- tix.Anchored = true
- tix.CFrame = char["Right Arm"].CFrame + Vector3.new(5,0,0)
- local billboard = Instance.new("BillboardGui",tix)
- billboard.Size = UDim2.new(5, 0,5, 0)
- billboard.MaxDistance = "inf"
- billboard.Adornee = tix
- billboard.ZIndexBehavior = "Global"
- local image = Instance.new("ImageLabel",billboard)
- image.Size = UDim2.new(1, 3, 1, 3)
- image.LayoutOrder = 0
- image.BorderSizePixel = 0
- image.BackgroundTransparency = 1
- image.ZIndex = 1
- image.Image = "http://www.roblox.com/asset/?id=13943715"
- image.ImageTransparency = 1
- for i = 1,10 do
- for i = 0,1 ,0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- Build:Play()
- image.ImageTransparency = image.ImageTransparency - 0.1
- for i = 0,1 ,0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- cananimate = true
- canuse = true
- char.Humanoid.WalkSpeed = 16
- char.Humanoid.JumpPower = 50
- game:GetService("Debris"):AddItem(question,10)
- end
- end
- function Build_POW_Block()
- if canuse then
- canuse = false
- cananimate = false
- char.Humanoid.WalkSpeed = 0
- char.Humanoid.JumpPower = 0
- wait(1)
- local question = Instance.new("Part",char)
- tix = question
- tix.CanCollide = true
- tix.Transparency = 1
- tix.Anchored = true
- tix.CFrame = char["Right Arm"].CFrame + Vector3.new(5,0,0)
- local billboard = Instance.new("BillboardGui",tix)
- billboard.Size = UDim2.new(5, 0,5, 0)
- billboard.MaxDistance = "inf"
- billboard.Adornee = tix
- billboard.ZIndexBehavior = "Global"
- local image = Instance.new("ImageLabel",billboard)
- image.Size = UDim2.new(1, 3, 1, 3)
- image.LayoutOrder = 0
- image.BorderSizePixel = 0
- image.BackgroundTransparency = 1
- image.ZIndex = 1
- image.Image = "http://www.roblox.com/asset/?id=62000631"
- image.ImageTransparency = 1
- for i = 1,10 do
- for i = 0,1 ,0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- Build:Play()
- image.ImageTransparency = image.ImageTransparency - 0.1
- for i = 0,1 ,0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- image.Image = "http://www.roblox.com/asset/?id=294060337"
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Model" and v.Name ~= plr.Name then
- local hum = v:FindFirstChildOfClass("Humanoid")
- if hum then
- hum.PlatformStand = true
- wait(0.5)
- hum.PlatformStand = false
- end
- end
- end
- Boom:Play()
- wait(1)
- cananimate = true
- canuse = true
- char.Humanoid.WalkSpeed = 16
- char.Humanoid.JumpPower = 50
- question:Destroy()
- end
- end
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(k)
- if k == "q" then
- Build_Question_Block()
- end
- if k == "e" then
- Build_Empty_Block()
- end
- if k == "r" then
- Build_Note_Block()
- end
- if k == "t" then
- Build_Brick_Block()
- end
- if k == "y" then
- Build_POW_Block()
- end
- end)
- Player = game.Players.LocalPlayer
- Character = Player.Character
- local txt = Instance.new("BillboardGui", Character)
- txt.Adornee = Character.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Arcade"
- text.TextStrokeColor3 = char.Torso.BrickColor.Color
- text.Text = "Mario Maker"
- while true do
- wait()
- if pose == "Standing" and cananimate then
- walking = false
- for i = 0,1 , 0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- update.RenderStepped:wait()
- end
- end
- if pose == "Walking" and cananimate then
- walking = true
- for i = 0,1 ,0.05 do
- 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)
- 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)
- 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)
- 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)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- walking = true
- for i = 0,1 ,0.05 do
- 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)
- 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)
- 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)
- 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)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- walking = true
- end
- if pose == "Jumping" and cananimate then
- walking = false
- for i = 0,1 , 0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.3247503, -0.419755459, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- 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)
- update.RenderStepped:wait()
- end
- end
- if pose == "Falling" and cananimate then
- walking = false
- for i = 0,1 , 0.05 do
- 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)
- 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)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- 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)
- update.RenderStepped:wait()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement