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,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --[[
- Controls
- Z = Red Spike
- X = Red Slash
- C = Red Rain
- V = Red Boom
- --]]
- boom = true
- player = game.Players.LocalPlayer
- char = player.Character
- human = char.Humanoid
- torso = char.Torso
- m=player:GetMouse()
- ChatService = game:GetService("Chat")
- ChatService:Chat(char.Head ,"You're gonna die sorry.")
- local clothes = {}
- for _, clothes in pairs (char:GetChildren()) do
- if clothes:IsA("Accessory") then
- clothes:Remove()
- end
- if clothes:IsA("Shirt") then
- clothes:Remove()
- end
- if clothes:IsA("Pants") then
- clothes:Remove()
- end
- if clothes:IsA("ShirtGraphic") then
- clothes.Graphic = 0
- clothes:Remove()
- end
- end
- char.Head.BrickColor = BrickColor.new("Really red")
- torso.BrickColor = BrickColor.new("Really red")
- char["Left Leg"].BrickColor = BrickColor.new("Really red")
- char["Left Arm"].BrickColor = BrickColor.new("Really red")
- char["Right Leg"].BrickColor = BrickColor.new("Really red")
- char["Right Arm"].BrickColor = BrickColor.new("Really red")
- char.Head.Material = "Neon"
- torso.Material = "Neon"
- char["Left Leg"].Material = "Neon"
- char["Left Arm"].Material = "Neon"
- char["Right Leg"].Material = "Neon"
- char["Right Arm"].Material = "Neon"
- human.MaxHealth = 2000000000
- wait(0.5)
- human.Health = human.MaxHealth
- human.WalkSpeed = 50
- ---------------------------------------------------------------------------------------------------------
- m.KeyDown:connect(function(key)
- if key == "f" then
- torso.CFrame = m.hit
- end
- end)
- ---------------------------------------------------------------------------------------------------------
- m.KeyDown:connect(function(key)
- if key == "z" then
- ChatService:Chat(char.Head ,"Spike")
- local pos = m.Hit.p
- local pos1 = torso.Position
- torso.CFrame = CFrame.new(pos1, pos)
- x = Instance.new("Part", char)
- x.Shape = "Ball"
- x.Size = Vector3.new(4,4,4)
- x.Material = "Neon"
- x.BrickColor = BrickColor.new("Really red")
- x.Anchored = false
- x.CanCollide = false
- x.CFrame = char["Torso"].CFrame * CFrame.new(0,0,-2.5)
- z = Instance.new("SpecialMesh", x)
- z.MeshId = "http://www.roblox.com/asset/?id=9982590"
- z.Scale = Vector3.new(1,1,1)
- c = Instance.new("BodyVelocity", x)
- c.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- c.velocity = char.Torso.CFrame.lookVector*180
- x.Touched:connect(function(h)
- local a = h.Parent
- if a.Name ~= player.Name and a.ClassName == "Model" then
- for i = 1,10,.4 do
- z.Scale = Vector3.new(1 + i*0.8, 1 + i*0.8, 1 + i*0.8)
- x.Size = Vector3.new(4 + i*2.3, 4 + i*2.3, 4 + i*2.3)
- h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 180
- end
- end
- if a.Name ~= player.Name and a.ClassName == "Model" and a:FindFirstChild("Humanoid") ~= nil then
- a:FindFirstChild("Humanoid"):TakeDamage(math.huge)
- end
- end)
- game.Debris:AddItem(x,5)
- end
- end)
- ----------------------------------------------------------------------------------------------------------
- m.KeyDown:connect(function(key)
- if key == "x" then
- ChatService:Chat(char.Head ,"Slash")
- local pos = m.Hit.p
- local pos1 = torso.Position
- torso.CFrame = CFrame.new(pos1, pos)
- k = Instance.new("Part", workspace)
- k.Shape = "Cylinder"
- k.Size = Vector3.new(21,3,4)
- k.Material = "Neon"
- k.BrickColor = BrickColor.new("Really red")
- k.Anchored = false
- k.CanCollide = false
- k.CFrame = char["Torso"].CFrame * CFrame.new(0,0,-2.5)
- j = Instance.new("SpecialMesh", k)
- j.MeshType = "Sphere"
- j.Scale = Vector3.new(1,1,1)
- h = Instance.new("BodyVelocity", k)
- h.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- h.velocity = char.Torso.CFrame.lookVector*180
- k.Touched:connect(function(h)
- local a = h.Parent
- if a.Name ~= player.Name and a.ClassName == "Model" then
- k.Anchored = true
- for i = 1,10,.4 do
- j.Scale = Vector3.new(1 + i*0.8, 1 + i*0.8, 1 + i*0.8)
- h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 180
- end
- end
- if a.Name ~= player.Name and a.ClassName == "Model" and a:FindFirstChild("Humanoid") ~= nil then
- a:FindFirstChild("Humanoid"):TakeDamage(math.huge)
- end
- end)
- game.Debris:AddItem(k,5)
- end
- end)
- ----------------------------------------------------------------------------------------------------------
- m.KeyDown:connect(function(key)
- if key == "c" and boom == true then boom = false
- ChatService:Chat(char.Head ,"Get Ready..")
- char.Humanoid.JumpPower = 150
- char.Humanoid.Jump = true
- wait(1)
- torso.Anchored = true
- torso.CFrame = torso.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- ChatService:Chat(char.Head ,"Red Rain!!")
- for i = 1,100 do
- local g = Instance.new("Part", workspace)
- g.Transparency = 0.1
- g.Name = "lalala"
- g.FormFactor = "Custom"
- g.Anchored = false
- g.CanCollide = false
- g.BrickColor = BrickColor.new("Really red")
- g.Shape = "Ball"
- g.Size = Vector3.new(15,15,15)
- g.Material = "Neon"
- g.TopSurface = 0
- g.BottomSurface = 0
- local y = Instance.new("BodyVelocity", g)
- y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- y.velocity = char.Torso.CFrame.lookVector*180
- g.CFrame = torso.CFrame*CFrame.new(math.random(-30,30),math.random(-30,30),math.random(-20,-10))* CFrame.Angles(0, 0, 0)
- local c = Instance.new("SpecialMesh",g)
- c.MeshType = "Sphere"
- c.Scale = Vector3.new(1,1,1)
- for i = 1,2 do
- c.Scale = c.Scale +Vector3.new(0,0,0)
- wait(0.0005)
- end
- g.Touched:connect(function(h)
- local a = h.Parent
- if a.Name ~= player.Name and a.ClassName == "Model" then
- g.Anchored = true
- for i = 1,10,.4 do
- c.Scale = Vector3.new(1 + i*0.4, 1 + i*0.4, 1 + i*0.4)
- h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 180
- end
- end
- if a.Name ~= player.Name and a.ClassName == "Model" and a:FindFirstChild("Humanoid") ~= nil then
- a:FindFirstChild("Humanoid"):TakeDamage(math.huge)
- end
- end)
- game.Debris:AddItem(g,5)
- end
- torso.Anchored = false
- boom = true
- end
- end)
- ----------------------------------------------------------------------------------------------------------------------------
- m.KeyDown:connect(function(key)
- if key == "v" and boom == true then boom = false
- ChatService:Chat(char.Head ,"Grrrrr..")
- wait(1)
- ChatService:Chat(char.Head ,"RED BOOM!!")
- local pos = m.Hit.p
- local pos1 = torso.Position
- torso.CFrame = CFrame.new(pos1, pos)
- local qeqe = Instance.new("Part", char)
- qeqe.Anchored = false
- qeqe.BrickColor = BrickColor.new("Really red")
- qeqe.CanCollide = false
- qeqe.Name = "Boom"
- qeqe.Shape = "Ball"
- qeqe.Size = Vector3.new(100, 100, 100)
- qeqe.Transparency = 0
- qeqe.TopSurface = 0
- qeqe.BottomSurface = 0
- qeqe.Material = "Neon"
- qeqe.CFrame = char["Torso"].CFrame * CFrame.new(0,0,-2.5)
- awd = Instance.new("BodyVelocity", qeqe)
- awd.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- awd.velocity = char.Torso.CFrame.lookVector*360
- qeqe.Touched:connect(function(h)
- local a = h.Parent
- if a.Name ~= player.Name and a.ClassName == "Model" and a:FindFirstChild("Humanoid") ~= nil then
- h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
- wait(0.2)
- a:FindFirstChild("Humanoid"):TakeDamage(math.huge)
- qeqe.Transparency = 1
- ChatService:Chat(char.Head ,"Red Boom Disappeared D:")
- end
- end)
- game.Debris:AddItem(qeqe,5)
- boom = true
- end
- end)
- ----------------------------------------------------------------------------------------------------------------------------
- while true do
- wait(0.3)
- local q = Instance.new("Part", char)
- q.Anchored = true
- q.BrickColor = BrickColor.new("Really red")
- q.CanCollide = false
- q.Name = "Ring"
- q.Size = Vector3.new(1, 1, 1)
- q.Transparency = 0
- q.TopSurface = 0
- q.BottomSurface = 0
- q.CFrame = torso.CFrame * CFrame.new(0,-2,0)
- q.CFrame = q.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- local e = Instance.new("SpecialMesh", q)
- e.MeshId = "http://www.roblox.com/asset/?id=3270017"
- e.Scale = Vector3.new(1, 1, 1)
- wait(0.1)
- coroutine.wrap(function()
- for i = 1, 10, .4 do
- e.Scale = Vector3.new(1 + i*5, 1 + i*5, 1 + i*2.5)
- wait()
- end
- wait()
- q:Destroy()
- wait()
- end)()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement