Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has been converted to FE by iPxter
- 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
- do
- print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- 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 te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- 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
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a 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})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) 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
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- Ply = owner
- --FIXED WITH TRIGECTORY's CheatSheet--
- cheatsheetplr = owner
- i = Instance.new("NumberValue", cheatsheetplr )
- i.Name = "FPSCH"
- Bin = Instance.new("HopperBin", cheatsheetplr .Backpack)
- script.Parent = Bin
- local cf = CFrame.new
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- RW = Create("Weld")({Name = "Right Shoulder", Part0 = Tor, C0 = CFrame.new(1.5, 0.5, 0), C1 = CFrame.new(0, 0.5,
- 0), Part1 = RA, Parent = Tor})
- LW = Create("Weld")({Name = "Left Shoulder", Part0 = Tor, C0 = CFrame.new(-1.5, 0.5, 0), C1 = CFrame.new(0, 0.5,
- 0), Part1 = LA, Parent = Tor})
- wait(.05)
- --Saz
- debounce=true
- etime=0
- etimem=20
- down=false
- vPlayer=owner
- cPlayer=nil
- Humanoid=nil
- Welds={}
- stopVictoly=function()
- for _,v in pairs(Welds) do
- v.Parent = cPlayer.Torso
- end
- wait(.2)
- g1:Remove() g2:Remove() g3:Remove() g4:Remove() g5:Remove()
- b1:Remove() b2:Remove()
- p1:Remove() p2:Remove()
- bpos:Remove()
- brot:Remove()
- Head.Anchored=false
- Humanoid.PlatformStand=false
- end
- startVictoly=function()
- Welds={}
- cPlayer=vPlayer.Character
- Humanoid = nil
- for _,v in pairs(cPlayer:children()) do
- if v.className=="Humanoid" then
- Humanoid=v
- end
- if v.Name=="Torso" then
- for __,vv in pairs(v:children()) do
- if vv:IsA("JointInstance") then
- table.insert(Welds,vv)
- end
- end
- end
- end
- Torso = cPlayer.Torso
- Head = cPlayer.Head
- RightArm = cPlayer["Right Arm"]
- LeftArm = cPlayer["Left Arm"]
- RightLeg = cPlayer["Right Leg"]
- LeftLeg = cPlayer["Left Leg"]
- Head.Anchored=true
- headpos = Head.CFrame.p
- print("DEAD")
- Humanoid.PlatformStand=true
- Torso.Anchored=true
- p1=Instance.new("Part",cPlayer)
- p1.Anchored=true
- p1.formFactor="Custom"
- p1.Size=Vector3.new(1,1,1)
- p1.TopSurface=0
- p1.BottomSurface=0
- p1.CanCollide=false
- p1.Name="AnchorR"
- p1.CFrame = Torso.CFrame * CFrame.new(.5,-3.5,0)
- p1.Transparency=1
- p2=Instance.new("Part",cPlayer)
- p2.Anchored=true
- p2.formFactor="Custom"
- p2.Size=Vector3.new(1,1,1)
- p2.TopSurface=0
- p2.BottomSurface=0
- p2.CanCollide=false
- p2.Name="AnchorL"
- p2.CFrame = Torso.CFrame * CFrame.new(-.5,-3.5,0)
- p2.Transparency=1
- g1=Instance.new("Glue",RightLeg)
- g1.Part0 = Torso
- g1.Part1 = RightLeg
- g1.C0 = CFrame.new(.5,-2,0)
- g1.C1 = CFrame.new(0,0,0)
- g1.F0 = Vector3.new(0,1,0)
- g1.F1 = Vector3.new(0,1,0)
- g1.F2 = Vector3.new(0,1,0)
- g1.F3 = Vector3.new(0,1,0)
- g2=Instance.new("Glue",p1)
- g2.Part0 = p1
- g2.Part1 = RightLeg
- g2.C0 = CFrame.new(0,1.5,0)
- g2.C1 = CFrame.new(0,0,0)
- g2.F0 = Vector3.new(.25,-1,.25)
- g2.F1 = Vector3.new(.25,-1,-.25)
- g2.F2 = Vector3.new(-.25,-1,.25)
- g2.F3 = Vector3.new(-.25,-1,-.25)
- g3=Instance.new("Glue",LeftLeg)
- g3.Part0 = Torso
- g3.Part1 = LeftLeg
- g3.C0 = CFrame.new(-.5,-2,0)
- g3.C1 = CFrame.new(0,0,0)
- g3.F0 = Vector3.new(0,1,0)
- g3.F1 = Vector3.new(0,1,0)
- g3.F2 = Vector3.new(0,1,0)
- g3.F3 = Vector3.new(0,1,0)
- g4=Instance.new("Glue",p2)
- g4.Part0 = p2
- g4.Part1 = LeftLeg
- g4.C0 = CFrame.new(0,1.5,0)
- g4.C1 = CFrame.new(0,0,0)
- g4.F0 = Vector3.new(.25,-1,.25)
- g4.F1 = Vector3.new(.25,-1,-.25)
- g4.F2 = Vector3.new(-.25,-1,.25)
- g4.F3 = Vector3.new(-.25,-1,-.25)
- g5=Instance.new("Glue",Torso)
- g5.Part0 = Head
- g5.Part1 = Torso
- g5.C0 = CFrame.new(0,0,0)
- g5.C1 = CFrame.new(0,1.5,0)
- g5.F0 = Vector3.new(0,0,0)
- g5.F1 = Vector3.new(0,0,0)
- g5.F2 = Vector3.new(0,0,0)
- g5.F3 = Vector3.new(0,0,0)
- for _,v in pairs(Welds) do
- if v.Name~="Neck" then
- print(v.Name)
- v.Parent = nil
- if v.Name=="Right Shoulder" then
- RSC0 = v.C0
- RSC1 = v.C1
- elseif v.Name=="Left Shoulder" then
- LSC0 = v.C0
- LSC1 = v.C1
- end
- end
- end
- b1=Instance.new("Motor6D",RightArm)
- b1.Part0 = Torso
- b1.Part1 = RightArm
- b1.C0 = RSC0
- b1.C1 = RSC1 * CFrame.new(0,.25,0)
- b2=Instance.new("Motor6D",LeftArm)
- b2.Part0 = Torso
- b2.Part1 = LeftArm
- b2.C0 = LSC0
- b2.C1 = LSC1 * CFrame.new(0,.25,0)
- pos=Torso.Position
- brot=Instance.new("BodyAngularVelocity",Torso)
- brot.P=2250
- brot.maxTorque=Vector3.new(8000000,8000000,8000000)
- bpos=Instance.new("BodyPosition",Torso)
- bpos.P=4250
- bpos.D=150
- bpos.maxForce=Vector3.new(8000000000,0,8000000000)
- bpos.position=Torso.Position
- Torso.RotVelocity=Vector3.new()
- Torso.Velocity=Vector3.new()
- for i=1, 5 do
- for _,v in pairs(cPlayer:children()) do
- if v:IsA("BasePart") then
- v.Velocity=Vector3.new()
- v.RotVelocity=Vector3.new()
- end
- end
- wait(.05)
- end
- Torso.Neck.Parent=nil
- Torso.Anchored=false
- ex=0
- em = 0
- elo = 0
- local mus = Instance.new("Sound",Torso)
- mus.Volume = 1
- mus.SoundId="http://www.roblox.com/asset/?id=230597205"
- mus:Play()
- ded=false
- wait()
- li=Instance.new("PointLight",Torso)
- li.Range=25
- li.Brightness=5
- li.Shadows=true
- pos=Torso.CFrame
- while down do
- game:GetService("RunService").Heartbeat:wait()
- em = em+1
- elo = elo+1
- if em == 11 then
- brot.angularvelocity=Vector3.new(math.random(-26,26),math.random(-20,20)/6,math.random(-26,26)/2)
- bpos.position = (pos * CFrame.new(math.random(-20,20)/10,0,math.random(-20,20)/20)).p
- em = math.random(0,4)
- li.Color=Color3.new(math.random(100,255)/255,math.random(100,255)/255,math.random(100,255)/255)
- end
- b1.C0 = RSC0 * CFrame.new(math.cos(math.rad(elo*15))/20,.5,math.sin(math.rad(elo*15))/30) * CFrame.Angles(math.rad(ex/8)*elo - math.pi/3,math.cos(math.rad(elo*15))/100,math.sin(elo/8)*7)
- b2.C0 = LSC0 * CFrame.new(math.cos(math.rad(elo*15))/20,.5,math.sin(math.rad(elo*15))/30) * CFrame.Angles(math.rad(-ex/8)*elo - math.pi/3,math.sin(math.rad(elo*15))/100,-math.cos(elo/8)*7)
- ex = ex + math.random(-5,5)/5
- if ex > 50 then
- ex = 50
- elseif ex < 10 then
- ex = 20
- end
- if elo > 15 then
- if g1.Parent==nil or g2.Parent==nil or g3.Parent==nil or g4.Parent==nil or g5.Parent==nil or Humanoid.Health <= 0 then
- ded = true
- break
- end
- if g1.Part0==nil or g2.Part0==nil or g3.Part0==nil or g4.Part0==nil or g5.Part0==nil then
- ded = true
- break
- end
- if RightArm.Parent == nil or LeftArm.Parent == nil or LeftLeg.Parent==nil or RightLeg.Parent==nil then
- ded=true
- break
- end
- end
- end
- li:Remove()
- mus:Stop()
- if ded then
- Head.Anchored=false
- for _,v in pairs(cPlayer:children()) do
- if v:IsA("BasePart") then
- v:BreakJoints()
- v.CFrame = CFrame.new(Torso.Position + Vector3.new(math.random(-2,2),math.random(-1,2),math.random(-2,2))) * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- v.Velocity=Vector3.new(0,0,0)
- end
- end
- e=Instance.new("Explosion",workspace)
- e.BlastRadius=10
- e.BlastPressure=0
- e.Position=Torso.Position
- e.Hit:connect(function(hit) if hit.Parent == cPlayer and hit.Name~="AnchorR" and hit.Name~="AnchorL" then if hit:FindFirstChild("Fire") == nil then Instance.new("Fire",hit) end hit:BreakJoints() hit.Velocity = (e.Position - hit.Position).unit * 80 hit.RotVelocity = hit.Velocity end end)
- s=Instance.new("Sound",Head)
- s.SoundId="http://www.roblox.com/asset/?id=230597277"
- s.Volume=1
- s:Play()
- s=Instance.new("Sound",p1)
- s.SoundId="http://www.roblox.com/asset/?id=221920821"
- s.Volume=1
- s.Pitch=1.25
- s:Play()
- end
- wait(.5)
- mus:Remove()
- end
- onEquip=function(mouse)
- mouse.Button1Down:connect(function() down=true startVictoly() end)
- mouse.Button1Up:connect(function() down=false stopVictoly() end)
- end
- script.Parent.Selected:connect(onEquip)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement