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
- -- End of FE converter
- local MarketplaceService = game:GetService("MarketplaceService")
- local gamePassID = 5539417
- local player = owner
- local person = owner.Character
- local hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, gamePassID)
- -- Doesn't Work against advanced scripts
- -- Also thanks for 1k visits guys.
- -- CHLua (SofltockedUnderZero) and Dubman4
- if person ==nil then
- else
- if hasPass==true or owner.Name=="Dubman4" or owner.Name=="AbuFawer1s" or owner.Name=="AvaGamerJules10" or owner.Name=="BRODYHAPP1" or owner.Name=="dudetheca6" or owner.Name=="EndLeveler" or owner.Name=="finnthefishy" or owner.Name=="friskydarony" or owner.Name=="hey_itzAliyah1" or owner.Name=="InsanityEric30" or owner.Name=="jaicho" or owner.Name=="JuniorMLGPro" or owner.Name=="kangy12345" or owner.Name=="O_Alxani" or owner.Name=="Penny894" or owner.Name=="Princessbaby_tai" or owner.Name=="RealEnderIpDad" or owner.Name=="RealEnderIpMan" or owner.Name=="rega098" or owner.Name=="BaconScripted" or owner.Name=="clorbloxmaster" or owner.Name=="DoggoBunny" or owner.Name=="M1ntee" or owner.Name=="omqq_itzchris" or owner.Name=="Supreme_CeceBoo" or owner.Name=="synththetic" or owner.Name=="tsumtsum" then
- if person:FindFirstChild("Part") then
- else
- local box = person:GetExtentsSize()
- local part = Instance.new("Part",person)
- part.Shape = "Ball"
- part.Size = Vector3.new(box.Y*2,box.Y*2,box.Y*2)
- part.CanCollide = false
- part.Transparency = .75
- part.BrickColor = BrickColor.new("Cyan")
- part.Material = Enum.Material.Granite
- part.CFrame = person.HumanoidRootPart.CFrame
- local weld = Instance.new("WeldConstraint",part)
- weld.Part1 = part
- weld.Part0 = person.HumanoidRootPart
- local at = Instance.new("Attachment",part)
- at.Position = Vector3.new(0,part.Size.Y/2,0)
- local at1 = Instance.new("Attachment",part)
- at1.Position = Vector3.new(0,part.Size.Y/-2,0)
- local trail = Instance.new("Trail",part)
- trail.Attachment0 = at
- trail.Attachment1 = at1
- trail.Lifetime = 1
- trail.MinLength = 0
- trail.MaxLength = 10
- local at2 = Instance.new("Attachment",part)
- at2.Position = Vector3.new(part.Size.X/2,0,0)
- local at3 = Instance.new("Attachment",part)
- at3.Position = Vector3.new(part.Size.X/-2,0,0)
- local trail = Instance.new("Trail",part)
- trail.Attachment0 = at2
- trail.Attachment1 = at3
- trail.Lifetime = 1
- trail.MinLength = 0
- trail.MaxLength = 10
- if person.Humanoid.RigType=="R15" then
- local part1 = Instance.new("Part",person)
- part1.Shape = "Ball"
- part1.Size = Vector3.new(box.Y*2,box.Y*2,box.Y*2)
- part1.CanCollide = false
- part1.Transparency = 1
- part1.BrickColor = BrickColor.new("Cyan")
- part1.CFrame = person.UpperTorso.CFrame
- local weld = Instance.new("WeldConstraint",part1)
- weld.Part1 = part1
- weld.Part0 = person.UpperTorso
- end
- local DB1 = false
- part.Touched:Connect(function(hit)
- if hit.Parent.Name==person.Name then
- else
- if DB1==false then
- local head = hit.Parent:FindFirstChild("Head")
- local HRP = hit.Parent:FindFirstChild("HumanoidRootPart")
- if head then
- head.Anchored = true
- local part3 = Instance.new("Part")
- part3.CanCollide = false
- part3.CFrame = head.CFrame
- part3.Anchored = true
- part3.Transparency = .75
- part3.BrickColor = BrickColor.new("Cyan")
- part3.Size = Vector3.new(6,9,6)
- part3.Parent = head.Parent
- elseif HRP then
- HRP.Anchored = true
- local part3 = Instance.new("Part")
- part3.CanCollide = false
- part3.CFrame = HRP.CFrame
- part3.Anchored = true
- part3.Transparency = .75
- part3.BrickColor = BrickColor.new("Cyan")
- part3.Size = Vector3.new(6,9,6)
- part3.Parent = HRP.Parent
- elseif hit.Parent:FindFirstChild("Humanoid") then
- local humanoid = hit.Parent:FindFirstChild("Humanoid")
- end
- DB1 = true
- wait(1)
- DB1 =false
- end
- end
- end)
- if person.Humanoid.Health==0 then
- local part2 = Instance.new("Part",person)
- part2.Shape = "Ball"
- part2.Size = Vector3.new(box.Y*2,box.Y*2,box.Y*2)
- part2.CanCollide = false
- part2.Transparency = .75
- part2.BrickColor = BrickColor.new("Cyan")
- part2.CFrame = person.HumanoidRootPart.CFrame
- local weld = Instance.new("WeldConstraint",part2)
- weld.Part1 = part2
- weld.Part0 = person.HumanoidRootPart
- end
- end
- else
- print("You need a gamepass")
- end
- end
- if person==nil then
- else
- if hasPass==true or owner.Name=="Dubman4" or owner.Name=="AbuFawer1s" or owner.Name=="AvaGamerJules10" or owner.Name=="BRODYHAPP1" or owner.Name=="dudetheca6" or owner.Name=="EndLeveler" or owner.Name=="finnthefishy" or owner.Name=="friskydarony" or owner.Name=="hey_itzAliyah1" or owner.Name=="InsanityEric30" or owner.Name=="jaicho" or owner.Name=="JuniorMLGPro" or owner.Name=="kangy12345" or owner.Name=="O_Alxani" or owner.Name=="Penny894" or owner.Name=="Princessbaby_tai" or owner.Name=="RealEnderIpDad" or owner.Name=="RealEnderIpMan" or owner.Name=="rega098" or owner.Name=="BaconScripted" or owner.Name=="clorbloxmaster" or owner.Name=="DoggoBunny" or owner.Name=="M1ntee" or owner.Name=="omqq_itzchris" or owner.Name=="Supreme_CeceBoo" or owner.Name=="synththetic" or owner.Name=="tsumtsum" then
- local rope = Instance.new("RopeConstraint")
- if person.Humanoid.RigType==Enum.HumanoidRigType.R15 then
- rope.Attachment0 = person.LeftHand.LeftGripAttachment
- elseif person.Humanoid.RigType==Enum.HumanoidRigType.R6 then
- local attachment2 = Instance.new("Attachment")
- attachment2.Position = Vector3.new(0,-1,0)
- attachment2.Parent = person["Left Arm"]
- rope.Attachment0 = attachment2
- end
- rope.Length = 20
- rope.Visible = true
- local part3 = Instance.new("Part")
- part3.Shape = "Ball"
- part3.Size = Vector3.new(4,4,4)
- part3.Material = Enum.Material.Granite
- part3.BrickColor = BrickColor.new("Cyan")
- part3.Position = person.Head.Position
- part3.Massless = true
- local attachment = Instance.new("Attachment")
- attachment.Parent = part3
- part3.Parent = game.Workspace
- rope.Attachment1 = attachment
- rope.Parent = person
- local rope = Instance.new("RopeConstraint")
- if person.Humanoid.RigType==Enum.HumanoidRigType.R15 then
- rope.Attachment0 = person.RightHand.RightGripAttachment
- elseif person.Humanoid.RigType==Enum.HumanoidRigType.R6 then
- local attachment2 = Instance.new("Attachment")
- attachment2.Position = Vector3.new(0,-1,0)
- attachment2.Parent = person["Right Arm"]
- rope.Attachment0 = attachment2
- end
- rope.Length = 20
- rope.Visible = true
- local part4 = Instance.new("Part")
- part4.Shape = "Ball"
- part4.Size = Vector3.new(4,4,4)
- part4.Material = Enum.Material.Granite
- part4.BrickColor = BrickColor.new("Cyan")
- part4.Position = person.Head.Position
- part4.Massless = true
- local attachment = Instance.new("Attachment")
- attachment.Parent = part4
- part4.Parent = game.Workspace
- rope.Attachment1 = attachment
- rope.Parent = person
- local DB2 = false
- local DB3 = false
- part4.Touched:Connect(function(hit)
- if hit.Parent.Name==person.Name then
- else
- local humanoid = hit.Parent:FindFirstChild("Humanoid")
- local head = hit.Parent:FindFirstChild("Head")
- local HRP = hit.Parent:FindFirstChild("HumanoidRootPart")
- if DB2==false then
- if head then
- head.Anchored = true
- local part3 = Instance.new("Part")
- part3.CanCollide = false
- part3.CFrame = head.CFrame
- part3.Anchored = true
- part3.Transparency = .75
- part3.BrickColor = BrickColor.new("Cyan")
- part3.Size = Vector3.new(6,9,6)
- part3.Parent = head.Parent
- elseif HRP then
- HRP.Anchored = true
- local part3 = Instance.new("Part")
- part3.CanCollide = false
- part3.CFrame = HRP.CFrame
- part3.Anchored = true
- part3.Transparency = .75
- part3.BrickColor = BrickColor.new("Cyan")
- part3.Size = Vector3.new(6,9,6)
- part3.Parent = HRP.Parent
- end
- DB2 = true
- wait(1)
- DB2 =false
- end
- end
- end)
- local fireP3 = Instance.new("Fire")
- fireP3.Color = Color3.fromRGB(4, 175, 236)
- fireP3.Size = 10
- fireP3.Parent = part3
- local fireP4 = Instance.new("Fire")
- fireP4.Color = Color3.fromRGB(4, 175, 236)
- fireP4.Size = 10
- fireP4.Parent = part4
- if person.Name=="SoftlockedUnderZero" and person:FindFirstChild("Pants")==nil and person:FindFirstChild("Shirt")==nil then
- local torso = person.UpperTorso
- local part6 = Instance.new("Part")
- local attachment2 = Instance.new("Attachment")
- part6.CanCollide = false
- attachment2.Position = Vector3.new(torso.Size.X*.25,torso.Size.Y*.15,torso.Size.Z*-.25)
- part6.Shape = "Ball"
- part6.Size = Vector3.new(torso.Size.X/2,torso.Size.X/2,torso.Size.X/2)
- attachment2.Parent = torso
- part6.Position = attachment2.WorldPosition
- part6.Anchored = false
- part6.BrickColor = person["Body Colors"].TorsoColor
- part6.Parent = person
- local weld = Instance.new("WeldConstraint")
- weld.Part1 = torso
- weld.Part0 = part6
- weld.Parent = torso
- local part7 = Instance.new("Part")
- local attachment3 = Instance.new("Attachment")
- part7.CanCollide = false
- attachment3.Position = Vector3.new(torso.Size.X*-.25,torso.Size.Y*.15,torso.Size.Z*-.25)
- part7.Shape = "Ball"
- part7.Size = Vector3.new(torso.Size.X/2,torso.Size.X/2,torso.Size.X/2)
- attachment3.Parent = torso
- part7.Position = attachment3.WorldPosition
- part7.Anchored = false
- part7.BrickColor = person["Body Colors"].TorsoColor
- part7.Parent = person
- local weld = Instance.new("WeldConstraint")
- weld.Part1 = torso
- weld.Part0 = part7
- weld.Parent = torso
- local part8 = Instance.new("Part")
- local attachment4 = Instance.new("Attachment")
- part8.CanCollide = false
- attachment4.Position = Vector3.new(0,torso.Size.Y*.15,torso.Size.Z*-.25)
- part8.Shape = "Cylinder"
- part8.Size = Vector3.new(torso.Size.X/2,torso.Size.X/2,torso.Size.X/2)
- attachment4.Parent = torso
- part8.Position = attachment4.WorldPosition
- part8.Orientation = torso.Orientation
- part8.Anchored = false
- part8.BrickColor = person["Body Colors"].TorsoColor
- part8.Parent = person
- local weld = Instance.new("WeldConstraint")
- weld.Part1 = torso
- weld.Part0 = part8
- weld.Parent = torso
- part6.TopSurface = "Smooth"
- part7.TopSurface = "Smooth"
- part8.TopSurface = "Smooth"
- part6.BottomSurface = "Smooth"
- part7.BottomSurface = "Smooth"
- part8.BottomSurface = "Smooth"
- end
- while true do
- person.Humanoid.Health = "inf"
- person.Humanoid.PlatformStand = false
- person.Humanoid.WalkSpeed = 200
- person.Humanoid.JumpPower = 100
- person.Humanoid.MaxHealth = "inf"
- wait(.25)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement