Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --FE converter
- 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
- --end of FE converter
- local player= owner
- local character = owner.Character
- if character then
- local runonce = false
- local part = Instance.new("Part")
- part.Name = "Handle"
- part.Transparency = 1
- part.Size = Vector3.new(1,1,1)
- local tool = Instance.new("Tool")
- tool.Parent = character
- part.Parent = tool
- tool.Equipped:Connect(function()
- mouse.KeyDown:Connect(function(key)
- if key=="q" then
- local char = nil
- if mouse.Target.Parent:FindFirstChildWhichIsA("Humanoid") or mouse.Target.Parent.Parent:FindFirstChildWhichIsA("Humanoid") then
- if mouse.Target.Parent:FindFirstChildWhichIsA("Humanoid") then
- char = mouse.Target.Parent
- else
- char = mouse.Target.Parent.Parent
- end
- if char then
- local box = char:GetExtentsSize()
- local part = Instance.new("Part",char)
- part.CFrame = CFrame.new(char.HumanoidRootPart.Position) * CFrame.new(0,box.Y*-.55,0)
- part.Size = Vector3.new(4,.5,4)
- local attachment = Instance.new("Attachment",part)
- local APos = Instance.new("AlignOrientation",part)
- local attachment2 = Instance.new("Attachment",char.HumanoidRootPart)
- APos.RigidityEnabled = true
- APos.Attachment0 = attachment
- APos.Attachment1 = attachment2
- local chC = char:GetChildren()
- for i=1, #chC do
- if chC[i]:IsA("Part") or chC[i]:IsA("MeshPart") then
- chC[i].Anchored = true
- local weld = Instance.new("WeldConstraint",char)
- weld.Part1 = chC[i]
- weld.Part0 = char.PrimaryPart
- chC[i].Massless = true
- end
- end
- char.Humanoid.PlatformStand =true
- for i=1, #chC do
- if chC[i]:IsA("Part") or chC[i]:IsA("MeshPart") then
- chC[i].Anchored = false
- end
- end
- end
- end
- end
- end)
- part.Touched:Connect(function(hit)
- local Hpar = hit.Parent
- if Hpar.Name==character.Name then
- else
- if Hpar:FindFirstChildWhichIsA("Humanoid") and runonce==false then
- Hpar:FindFirstChildWhichIsA("Humanoid").WalkSpeed = 4
- Hpar:FindFirstChildWhichIsA("Humanoid").PlatformStand= false
- Hpar:FindFirstChildWhichIsA("Humanoid").JumpPower= 10
- local rope = Instance.new("RopeConstraint")
- if character.Humanoid.RigType==Enum.HumanoidRigType.R15 then
- rope.Attachment0 = character.LeftHand.LeftGripAttachment
- elseif character.Humanoid.RigType==Enum.HumanoidRigType.R6 then
- local attachment2 = Instance.new("Attachment")
- attachment2.Position = Vector3.new(0,-1,0)
- attachment2.Parent = character["Left Arm"]
- rope.Attachment0 = attachment2
- end
- if Hpar.Humanoid.RigType==Enum.HumanoidRigType.R15 then
- local attachment3 = Instance.new("Attachment")
- attachment3.Position = Vector3.new(0,Hpar.Head.Size.Y*-.5,Hpar.Head.Size.Z*-.5)
- attachment3.Parent = Hpar.Head
- rope.Attachment1 = attachment3
- elseif Hpar.Humanoid.RigType==Enum.HumanoidRigType.R6 then
- local attachment1 = Instance.new("Attachment")
- attachment1.Position = Vector3.new(0,-.5,0)
- attachment1.Parent = Hpar.Head
- rope.Attachment1 = attachment1
- end
- rope.Visible = true
- rope.Length = 8
- rope.Parent = character
- local HParCh = Hpar:GetChildren()
- for i=1, #HParCh do
- if HParCh[i]:IsA("MeshPart") or HParCh[i]:IsA("Part") then
- HParCh[i].Massless=true
- end
- end
- local part4 = Instance.new("Part")
- part4.Size = Vector3.new(.1,Hpar.Head.Size.X*.6,Hpar.Head.Size.X*.6)
- part4.Orientation = Hpar.Head.Orientation + Vector3.new(0,0,90)
- part4.Shape = "Cylinder"
- part4.CanCollide = true
- part4.Anchored = false
- part4.BrickColor = BrickColor.new("Dark stone grey")
- local attachment4 = Instance.new("Attachment")
- attachment4.Position = Vector3.new(0,Hpar.Head.Size.Y*-.45,0)
- attachment4.Parent = Hpar.Head
- part4.Position = attachment4.WorldPosition
- part4.Parent = Hpar
- local weld = Instance.new("WeldConstraint",Hpar.Head)
- weld.Part0 = part4
- weld.Part1 = Hpar.Head
- local h = Instance.new("Hat")
- local p = Instance.new("Part")
- local HPar = hit.Parent
- h.Name = "BunnyEars"
- p.Parent = h
- p.Position = hit.Parent:findFirstChild("Head").Position
- p.Name = "Handle"
- p.formFactor = 2
- p.Size = Vector3.new(1, 1.6, 1)
- p.BottomSurface = 0
- p.TopSurface = 0
- p.Locked = true
- local mesh = Instance.new("SpecialMesh",p)
- mesh.MeshId="http://www.roblox.com/asset/?id=1374148"
- mesh.TextureId = "rbxassetid://14183258"
- h.Parent = hit.Parent
- h.AttachmentPos = Vector3.new(0,HPar.Head.Size.Y* -0.35, 0)
- runonce = true
- end
- end
- end)
- end)
- if character.Name=="SoftlockedUnderZero" and character:FindFirstChild("Pants")==nil and character:FindFirstChild("Shirt")==nil and character.Humanoid.RigType==Enum.HumanoidRigType.R15 then
- local torso = character.UpperTorso
- local part3 = Instance.new("Part")
- local attachment2 = Instance.new("Attachment")
- part3.CanCollide = false
- attachment2.Position = Vector3.new(torso.Size.X*.25,torso.Size.Y*.15,torso.Size.Z*-.25)
- part3.Shape = "Ball"
- part3.Size = Vector3.new(torso.Size.X/2,torso.Size.X/2,torso.Size.X/2)
- attachment2.Parent = torso
- part3.Position = attachment2.WorldPosition
- part3.Anchored = false
- part3.BrickColor = character["Body Colors"].TorsoColor
- part3.Parent = character
- local weld = Instance.new("WeldConstraint")
- weld.Part1 = torso
- weld.Part0 = part3
- weld.Parent = torso
- local part4 = Instance.new("Part")
- local attachment3 = Instance.new("Attachment")
- part4.CanCollide = false
- attachment3.Position = Vector3.new(torso.Size.X*-.25,torso.Size.Y*.15,torso.Size.Z*-.25)
- part4.Shape = "Ball"
- part4.Size = Vector3.new(torso.Size.X/2,torso.Size.X/2,torso.Size.X/2)
- attachment3.Parent = torso
- part4.Position = attachment3.WorldPosition
- part4.Anchored = false
- part4.BrickColor = character["Body Colors"].TorsoColor
- part4.Parent = character
- local weld = Instance.new("WeldConstraint")
- weld.Part1 = torso
- weld.Part0 = part4
- weld.Parent = torso
- local part5 = Instance.new("Part")
- local attachment4 = Instance.new("Attachment")
- part5.CanCollide = false
- attachment4.Position = Vector3.new(0,torso.Size.Y*.15,torso.Size.Z*-.25)
- part5.Shape = "Cylinder"
- part5.Size = Vector3.new(torso.Size.X/2,torso.Size.X/2,torso.Size.X/2)
- attachment4.Parent = torso
- part5.Position = attachment4.WorldPosition
- part5.Orientation = torso.Orientation
- part5.Anchored = false
- part5.BrickColor = character["Body Colors"].TorsoColor
- part5.Parent = character
- local weld = Instance.new("WeldConstraint")
- weld.Part1 = torso
- weld.Part0 = part5
- weld.Parent = torso
- part3.TopSurface = "Smooth"
- part4.TopSurface = "Smooth"
- part5.TopSurface = "Smooth"
- part3.BottomSurface = "Smooth"
- part4.BottomSurface = "Smooth"
- part5.BottomSurface = "Smooth"
- end
- while true do
- character.Humanoid.Health = "inf"
- character.Humanoid.PlatformStand = false
- character.Humanoid.WalkSpeed = 16
- character.Humanoid.JumpPower = 40
- character.Humanoid.MaxHealth = "inf"
- wait(.5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement