Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- Torso=Character.Torso
- Head=Character.Head
- euler=CFrame.fromEulerAnglesXYZ
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- local Effects={}
- mouse=Player:GetMouse()
- game.Players.LocalPlayer.Character.Head.Mesh:destroy()
- mouse=game.Players.LocalPlayer:GetMouse()
- function doo(limb, pos)
- limb:BreakJoints()
- local velocity = Instance.new("RocketPropulsion", limb)
- velocity.CartoonFactor = 0
- velocity.MaxSpeed = 30
- velocity.MaxThrust = 9999
- velocity.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- velocity.Target = game.Players.LocalPlayer.Character.Torso
- velocity.TargetOffset = pos
- velocity:fire()
- local b = Instance.new("BodyGyro", limb)
- end
- function lazor()
- --[[
- local orb=part(3,Character,"Neon",0,1,BrickColor.new("Dark blue"),"Orb",vt())
- local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15))
- local owld=weld(orb,orb,Torso,cf(0,-1.5,8),cf(0,0,0))
- so("http://roblox.com/asset/?id=169445572",orb,1,0.9)
- so("http://roblox.com/asset/?id=169380495",orb,1,0.6)
- so("http://roblox.com/asset/?id=203691346",orb,1,0.9)
- for i=1,0.3,-0.01 do
- wait()
- orb.Transparency=i
- omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5)
- MagicBlockx(BrickColor.new("Really black"),orb.CFrame,15,15,15,2,2,2,0.1)
- local ef=part(3,workspace,"Neon",0,0,BrickColor.new("Dark blue"),"Effect",vt())
- ef.Anchored=true
- local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2))
- local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(10,20),0)
- ef.CFrame=orb.CFrame*ceef
- game:GetService("Debris"):AddItem(ef,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.1 do
- wait()
- Part.Transparency=i
- Part.CFrame=Part.CFrame*cf(0,-1,0)
- end
- Part.Parent=nil
- end),ef,emsh)
- end
- --orb orb orb
- local Pos=cf(orb.Position,Player:GetMouse().Hit.p).lookVector
- wait(.5)
- orb.Parent=nil ]]--
- local Pos=cf(Torso.Position,Player:GetMouse().Hit.p).lookVector
- local hit,pos = rayCast(Torso.Position,Pos,999,Character)
- local mag=(Torso.Position-pos).magnitude
- MagicCirclex(BrickColor.new("Really red"),cf(pos),15,15,15,8,8,8,0.02)
- MagicBlockx(BrickColor.new("Really red"),cf(pos),15,15,15,8,8,8,0.02)
- MagicCylinder(BrickColor.new("Really red"),CFrame.new((Torso.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
- for i=1,2 do
- MagicRingx(BrickColor.new("Really red"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,1,1,1,0.04)
- end
- for i=1,5 do
- local tehcf=CFrame.new((Head.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
- MagicRingx(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
- end
- for i=0,5 do
- local tehcf=CFrame.new((Head.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
- MagicRingx(BrickColor.new("Really red"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
- end
- local ref=part(3,workspace,"Neon",0,1,BrickColor.new("Really black"),"Effect",vt())
- ref.CFrame=cf(pos)
- so("http://roblox.com/asset/?id=203691378",Torso,1,0.7)
- so("http://roblox.com/asset/?id=169445602",Torso,1,0.7)
- so("http://www.roblox.com/Asset?ID=203691282",Torso,1,.8)
- coroutine.resume(coroutine.create(function(Part)
- Part.Parent=nil
- end),ref)
- if hit~=nil then
- --MagniDamage(Part,hit,30,90,100,0,"Normal")
- end
- end
- function explode()
- local hiss=Instance.new("Sound", game.Workspace)
- hiss.SoundId="http://www.roblox.com/asset/?id=907668984"
- hiss.Pitch=1.1
- hiss:Play()
- wait(3)
- local b=Instance.new("Sound", game.Workspace)
- b.SoundId="http://www.roblox.com/asset/?id=2233908"
- b.Pitch=0.8
- b:Play()
- game:GetService("Debris"):AddItem(b,10)
- game:GetService("Debris"):AddItem(hiss,10)
- local ex=Instance.new("Explosion")
- ex.BlastRadius=40
- ex.BlastPressure = 30234
- ex.Position = game.Players.LocalPlayer.Character.Torso.Position
- ex.Parent=game.Workspace
- end
- mouse.KeyDown:connect(function(k)
- k=k:lower()
- if k=='e' then
- sound()
- elseif k=='f' then
- explode()
- elseif k=='q' then
- lazor()()
- end
- end)
- function sound()
- local hiss = Instance.new("Sound",game.Players.LocalPlayer.Character.Head)
- hiss.SoundId = "rbxassetid://216932927" --2352103728 216932927 192791700
- hiss.Looped = false
- hiss.Pitch = 1
- hiss.Volume = 5
- hiss:Play()
- end
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- NoOutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- return weld
- end
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.Stepped:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Stepped:wait(0)
- end
- end
- end
- function MagicBlockx(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt())
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
- end
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end))
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicCirclex(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- prt.CanCollide = false
- msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicRingx(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh,num)
- for i=0,1,delay do
- swait()
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh,(math.random(0,1)+math.random())/5)
- end
- while wait() do
- doo(game.Players.LocalPlayer.Character["Left Arm"], Vector3.new(-0.5,-2,-1))
- doo(game.Players.LocalPlayer.Character["Right Arm"], Vector3.new(0.5,-2,-1))
- doo(game.Players.LocalPlayer.Character["Left Leg"], Vector3.new(-0.5,-2,1))
- doo(game.Players.LocalPlayer.Character["Right Leg"], Vector3.new(0.5,-2,1))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement