Advertisement
wormhun

Untitled

Jun 16th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --FE converter
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. do
  5.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  6.     script.Parent = Player.Character
  7.  
  8.     --RemoteEvent for communicating
  9.     local Event = Instance.new("RemoteEvent")
  10.     Event.Name = "UserInput_Event"
  11.     --Fake event to make stuff like Mouse.KeyDown work
  12.     local function fakeEvent()
  13.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14.         t.connect = t.Connect
  15.         return t
  16.     end
  17.     --Creating fake input objects with fake variables
  18.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  19.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  20.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  21.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  22.     end}
  23.     --Merged 2 functions into one by checking amount of arguments
  24.     CAS.UnbindAction = CAS.BindAction
  25.  
  26.     --This function will trigger the events that have been :Connect()'ed
  27.     local function te(self,ev,...)
  28.         local t = m[ev]
  29.         if t and t._fakeEvent and t.Function then
  30.             t.Function(...)
  31.         end
  32.     end
  33.     m.TrigEvent = te
  34.     UIS.TrigEvent = te
  35.     Event.OnServerEvent:Connect(function(plr,io)
  36.         if plr~=Player then return end
  37.         if io.isMouse then
  38.             m.Target = io.Target
  39.             m.Hit = io.Hit
  40.         else
  41.             local b = io.UserInputState == Enum.UserInputState.Begin
  42.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  43.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  44.             end
  45.             for _,t in pairs(CAS.Actions) do
  46.                 for _,k in pairs(t.Keys) do
  47.                     if k==io.KeyCode then
  48.                         t.Function(t.Name,io.UserInputState,io)
  49.                     end
  50.                 end
  51.             end
  52.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  53.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  54.         end
  55.     end)
  56.     Event.Parent = NLS([==[
  57.     local Player = game:GetService("Players").LocalPlayer
  58.     local Event = script:WaitForChild("UserInput_Event")
  59.     local UIS = game:GetService("UserInputService")
  60.     local input = function(io,a)
  61.         if a then return end
  62.         --Since InputObject is a client-side instance, we create and pass table instead
  63.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  64.     end
  65.     UIS.InputBegan:Connect(input)
  66.     UIS.InputEnded:Connect(input)
  67.     local Mouse = Player:GetMouse()
  68.     local h,t
  69.     --Give the server mouse data 30 times every second, but only if the values changed
  70.     --If player is not moving their mouse, client won't fire events
  71.     while wait(1/30) do
  72.         if h~=Mouse.Hit or t~=Mouse.Target then
  73.             h,t=Mouse.Hit,Mouse.Target
  74.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  75.         end
  76.     end]==],Player.Character)
  77.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  78. end
  79. --end of FE converter
  80.  
  81. local player= owner
  82. local character = owner.Character
  83.  
  84. if character then
  85.     local runonce = false
  86.     local part = Instance.new("Part")
  87.     part.Name = "Handle"
  88.     part.Transparency = 1
  89.     part.Size = Vector3.new(1,1,1)
  90.     local tool = Instance.new("Tool")
  91.     tool.Parent = character
  92.     part.Parent = tool
  93.     tool.Equipped:Connect(function()
  94.         mouse.KeyDown:Connect(function(key)
  95.             if key=="q" then
  96.                 local char = nil
  97.                 if mouse.Target.Parent:FindFirstChildWhichIsA("Humanoid") or mouse.Target.Parent.Parent:FindFirstChildWhichIsA("Humanoid") then
  98.                    
  99.                     if mouse.Target.Parent:FindFirstChildWhichIsA("Humanoid") then
  100.                         char = mouse.Target.Parent
  101.                     else
  102.                         char = mouse.Target.Parent.Parent
  103.                     end
  104.  
  105.                 if char then
  106.                     local box = char:GetExtentsSize()
  107.                     local part = Instance.new("Part",char)
  108.                     part.CFrame = CFrame.new(char.HumanoidRootPart.Position) * CFrame.new(0,box.Y*-.55,0)
  109.                     part.Size = Vector3.new(4,.5,4)
  110.                     local attachment = Instance.new("Attachment",part)
  111.                     local APos = Instance.new("AlignOrientation",part)
  112.                     local attachment2 = Instance.new("Attachment",char.HumanoidRootPart)
  113.                     APos.RigidityEnabled = true
  114.                     APos.Attachment0 = attachment
  115.                     APos.Attachment1 = attachment2
  116.                     local chC = char:GetChildren()
  117.                     for i=1, #chC do
  118.                         if chC[i]:IsA("Part") or chC[i]:IsA("MeshPart") then
  119.                         chC[i].Anchored = true
  120.                         local weld = Instance.new("WeldConstraint",char)
  121.                         weld.Part1 = chC[i]
  122.                         weld.Part0 = char.PrimaryPart
  123.                         chC[i].Massless = true
  124.                         end
  125.                     end
  126.                     char.Humanoid.PlatformStand =true
  127.                     for i=1, #chC do
  128.                         if chC[i]:IsA("Part") or chC[i]:IsA("MeshPart") then
  129.                         chC[i].Anchored = false
  130.                         end
  131.                     end
  132.                 end
  133.             end
  134.             end
  135.         end)
  136.         part.Touched:Connect(function(hit)
  137.             local Hpar = hit.Parent
  138.             if Hpar.Name==character.Name then
  139.             else
  140.                
  141.                 if Hpar:FindFirstChildWhichIsA("Humanoid") and runonce==false then
  142.                     Hpar:FindFirstChildWhichIsA("Humanoid").WalkSpeed = 4
  143.                     Hpar:FindFirstChildWhichIsA("Humanoid").PlatformStand= false
  144.                     Hpar:FindFirstChildWhichIsA("Humanoid").JumpPower= 10
  145.                     local rope = Instance.new("RopeConstraint")
  146.                     if character.Humanoid.RigType==Enum.HumanoidRigType.R15 then
  147.                         rope.Attachment0 = character.LeftHand.LeftGripAttachment
  148.                        
  149.                     elseif character.Humanoid.RigType==Enum.HumanoidRigType.R6 then
  150.                         local attachment2 = Instance.new("Attachment")
  151.                         attachment2.Position = Vector3.new(0,-1,0)
  152.                         attachment2.Parent = character["Left Arm"]
  153.                         rope.Attachment0 = attachment2
  154.                     end
  155.                     if Hpar.Humanoid.RigType==Enum.HumanoidRigType.R15 then
  156.                         local attachment3 = Instance.new("Attachment")
  157.                         attachment3.Position = Vector3.new(0,Hpar.Head.Size.Y*-.5,Hpar.Head.Size.Z*-.5)
  158.                         attachment3.Parent = Hpar.Head
  159.                         rope.Attachment1 = attachment3
  160.                        
  161.                     elseif Hpar.Humanoid.RigType==Enum.HumanoidRigType.R6 then
  162.                         local attachment1 = Instance.new("Attachment")
  163.                         attachment1.Position = Vector3.new(0,-.5,0)
  164.                         attachment1.Parent = Hpar.Head
  165.                         rope.Attachment1 = attachment1
  166.                     end
  167.                     rope.Visible = true
  168.                     rope.Length = 8
  169.                     rope.Parent = character
  170.                     local HParCh = Hpar:GetChildren()
  171.                     for i=1, #HParCh do
  172.                         if HParCh[i]:IsA("MeshPart") or HParCh[i]:IsA("Part") then
  173.                             HParCh[i].Massless=true
  174.                         end
  175.                     end
  176.                 local part4 = Instance.new("Part")
  177.                 part4.Size = Vector3.new(.1,Hpar.Head.Size.X*.6,Hpar.Head.Size.X*.6)
  178.                 part4.Orientation = Hpar.Head.Orientation + Vector3.new(0,0,90)
  179.                 part4.Shape = "Cylinder"
  180.                 part4.CanCollide = true
  181.                 part4.Anchored = false
  182.                 part4.BrickColor = BrickColor.new("Dark stone grey")
  183.                 local attachment4 = Instance.new("Attachment")
  184.                 attachment4.Position = Vector3.new(0,Hpar.Head.Size.Y*-.45,0)
  185.                 attachment4.Parent = Hpar.Head
  186.                 part4.Position = attachment4.WorldPosition
  187.                 part4.Parent = Hpar
  188.                 local weld = Instance.new("WeldConstraint",Hpar.Head)
  189.                 weld.Part0 = part4
  190.                 weld.Part1 = Hpar.Head
  191.                    
  192.                     local h = Instance.new("Hat")
  193.         local p = Instance.new("Part")
  194.         local HPar = hit.Parent
  195.         h.Name = "BunnyEars"
  196.         p.Parent = h
  197.         p.Position = hit.Parent:findFirstChild("Head").Position
  198.         p.Name = "Handle"
  199.         p.formFactor = 2
  200.         p.Size = Vector3.new(1, 1.6, 1)
  201.         p.BottomSurface = 0
  202.         p.TopSurface = 0
  203.         p.Locked = true
  204.         local mesh = Instance.new("SpecialMesh",p)
  205.         mesh.MeshId="http://www.roblox.com/asset/?id=1374148"
  206.         mesh.TextureId = "rbxassetid://14183258"
  207.         h.Parent = hit.Parent
  208.         h.AttachmentPos = Vector3.new(0,HPar.Head.Size.Y* -0.35, 0)
  209.  
  210.                     runonce = true
  211.                 end
  212.             end
  213.         end)
  214.     end)
  215.  
  216.  
  217.     if character.Name=="SoftlockedUnderZero" and character:FindFirstChild("Pants")==nil and character:FindFirstChild("Shirt")==nil and character.Humanoid.RigType==Enum.HumanoidRigType.R15 then
  218.         local torso = character.UpperTorso
  219.         local part3 = Instance.new("Part")
  220.         local attachment2 = Instance.new("Attachment")
  221.         part3.CanCollide = false
  222.         attachment2.Position = Vector3.new(torso.Size.X*.25,torso.Size.Y*.15,torso.Size.Z*-.25)
  223.         part3.Shape = "Ball"
  224.         part3.Size = Vector3.new(torso.Size.X/2,torso.Size.X/2,torso.Size.X/2)
  225.         attachment2.Parent = torso
  226.         part3.Position = attachment2.WorldPosition
  227.         part3.Anchored = false
  228.         part3.BrickColor = character["Body Colors"].TorsoColor
  229.         part3.Parent = character
  230.         local weld = Instance.new("WeldConstraint")
  231.         weld.Part1 = torso
  232.         weld.Part0 = part3
  233.         weld.Parent = torso
  234.         local part4 = Instance.new("Part")
  235.         local attachment3 = Instance.new("Attachment")
  236.         part4.CanCollide = false
  237.         attachment3.Position = Vector3.new(torso.Size.X*-.25,torso.Size.Y*.15,torso.Size.Z*-.25)
  238.         part4.Shape = "Ball"
  239.         part4.Size = Vector3.new(torso.Size.X/2,torso.Size.X/2,torso.Size.X/2)
  240.         attachment3.Parent = torso
  241.         part4.Position = attachment3.WorldPosition
  242.         part4.Anchored = false
  243.         part4.BrickColor = character["Body Colors"].TorsoColor
  244.         part4.Parent = character
  245.         local weld = Instance.new("WeldConstraint")
  246.         weld.Part1 = torso
  247.         weld.Part0 = part4
  248.         weld.Parent = torso
  249.         local part5 = Instance.new("Part")
  250.         local attachment4 = Instance.new("Attachment")
  251.         part5.CanCollide = false
  252.         attachment4.Position = Vector3.new(0,torso.Size.Y*.15,torso.Size.Z*-.25)
  253.         part5.Shape = "Cylinder"
  254.         part5.Size = Vector3.new(torso.Size.X/2,torso.Size.X/2,torso.Size.X/2)
  255.         attachment4.Parent = torso
  256.         part5.Position = attachment4.WorldPosition
  257.         part5.Orientation = torso.Orientation
  258.         part5.Anchored = false
  259.         part5.BrickColor = character["Body Colors"].TorsoColor
  260.         part5.Parent = character
  261.         local weld = Instance.new("WeldConstraint")
  262.         weld.Part1 = torso
  263.         weld.Part0 = part5
  264.         weld.Parent = torso
  265.         part3.TopSurface = "Smooth"
  266.         part4.TopSurface = "Smooth"
  267.         part5.TopSurface = "Smooth"
  268.         part3.BottomSurface = "Smooth"
  269.         part4.BottomSurface = "Smooth"
  270.         part5.BottomSurface = "Smooth"
  271.     end
  272.     while true do
  273.         character.Humanoid.Health = "inf"
  274.         character.Humanoid.PlatformStand = false
  275.         character.Humanoid.WalkSpeed = 16
  276.         character.Humanoid.JumpPower = 40
  277.         character.Humanoid.MaxHealth = "inf"
  278.         wait(.5)
  279.     end
  280. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement