Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(3)
- --FE Version by basstracker1970
- local rs = game:GetService("RunService")
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character
- char.Archivable = true
- local cam = workspace:WaitForChild("Camera")
- local fakechar = char:Clone()
- fakechar.Head.face.Texture = ""
- fakechar.Parent = workspace
- cam.CameraSubject = fakechar:FindFirstChildOfClass("Humanoid")
- local connections = {}
- local kill = false
- --sethiddenproperty function
- local function sethiddenproperty(player,prop,value)
- player[prop] = value
- end
- -- Align function
- local function Align(Part1, Part0, Position, Angle)
- Part1.CanCollide = false
- local AlignPos = Instance.new("AlignPosition")
- AlignPos.ApplyAtCenterOfMass = true
- AlignPos.MaxForce = 100000
- AlignPos.MaxVelocity = math.huge
- AlignPos.ReactionForceEnabled = false
- AlignPos.Responsiveness = 200
- AlignPos.RigidityEnabled = false
- AlignPos.Parent = Part1
- local AlignOri = Instance.new("AlignOrientation")
- AlignOri.MaxAngularVelocity = math.huge
- AlignOri.MaxTorque = 100000
- AlignOri.PrimaryAxisOnly = false
- AlignOri.ReactionTorqueEnabled = false
- AlignOri.Responsiveness = 200
- AlignOri.RigidityEnabled = false
- AlignOri.Parent = Part1
- local at1 = Instance.new("Attachment")
- at1.Parent = Part1
- local at2 = Instance.new("Attachment")
- at2.Parent = Part0
- at2.Orientation = Angle
- at2.Position = Position
- AlignPos.Attachment0 = at1
- AlignPos.Attachment1 = at2
- AlignOri.Attachment0 = at1
- AlignOri.Attachment1 = at2
- end
- local success, fail = pcall(function()
- -- Make the fake character invisible
- for _,v in pairs(fakechar:GetDescendants()) do
- if v:IsA("Part") then
- v.Transparency = 1
- elseif v:IsA("SpecialMesh") then
- v.MeshId = "rbxassetid://0"
- end
- end
- -- Networking
- spawn(function()
- while rs.Stepped:wait() and not kill do
- settings().Physics.AllowSleep = false
- sethiddenproperty(plr, "MaximumSimulationRadius", math.pow(math.huge,math.huge) * math.huge)
- sethiddenproperty(plr, "SimulationRadius", math.pow(math.huge,math.huge) * math.huge)
- end
- end)
- -- Noclipping
- table.insert(connections, rs.Stepped:Connect(function()
- fakechar:FindFirstChild("Head").CanCollide = false
- fakechar:FindFirstChild("Torso").CanCollide = false
- char.Head.CanCollide = false
- char.Torso.CanCollide = false
- end))
- table.insert(connections, rs.Heartbeat:Connect(function()
- fakechar:FindFirstChild("Head").CanCollide = false
- fakechar:FindFirstChild("Torso").CanCollide = false
- char.Head.CanCollide = false
- char.Torso.CanCollide = false
- end))
- table.insert(connections, rs.RenderStepped:Connect(function()
- fakechar:FindFirstChild("Head").CanCollide = false
- fakechar:FindFirstChild("Torso").CanCollide = false
- char.Head.CanCollide = false
- char.Torso.CanCollide = false
- end))
- -- Rigging
- char.Torso["Right Shoulder"]:Destroy()
- char.Torso["Left Shoulder"]:Destroy()
- char.Torso["Right Hip"]:Destroy()
- char.Torso["Left Hip"]:Destroy()
- char.HumanoidRootPart["RootJoint"]:Destroy()
- char.HumanoidRootPart.Anchored = true
- char.Humanoid.PlatformStand = true
- fakechar["Torso"].Position = char["Torso"].Position
- -- Align
- for _,v in pairs(char:GetChildren()) do
- if v:IsA("Part") and v.Name ~= "Head" then
- if v.Name == "Torso" then
- Align(char[v.Name], fakechar[v.Name], Vector3.new(0,0.5,0),Vector3.new(0,0,0))
- else
- Align(char[v.Name], fakechar[v.Name], Vector3.new(0,0,0),Vector3.new(0,0,0))
- end
- end
- end
- end)
- if fail then
- warn(fail)
- plr.Character = char
- char:BreakJoints()
- fakechar:Destroy()
- kill = false
- return
- end
- -- Cleanup
- fakechar.Humanoid.Died:Connect(function()
- plr.Character = char
- char:BreakJoints()
- fakechar:Destroy()
- kill = false
- for _,v in pairs(connections) do v:Disconnect() end
- end)
- char.Humanoid.Died:Connect(function()
- plr.Character = char
- char:BreakJoints()
- fakechar:Destroy()
- kill = true
- for _,v in pairs(connections) do v:Disconnect() end
- end)
- plr.Character = fakechar
- owner = game.Players.LocalPlayer
- sound = Instance.new("Sound",owner.Character.Torso)
- sound.SoundId = "rbxassetid://390099251"
- sound.Volume = 4
- sound:Play()
- sound.Looped = true
- moving = false
- combat = false
- scream = Instance.new("Sound",owner.Character.Torso)
- scream.SoundId = "rbxassetid://154157312"
- scream.Volume = 10
- scream.EmitterSize = 5
- hurtnoise = Instance.new("Sound",owner.Character.Torso)
- hurtnoise.SoundId = "rbxassetid://170014277"
- hurtnoise.Volume = 5
- larmhit = Instance.new("Sound",owner.Character["Left Arm"])
- larmhit.SoundId = "rbxassetid://190017832"
- larmhit.Volume = 5
- rarmhit = Instance.new("Sound",owner.Character["Right Arm"])
- rarmhit.SoundId = "rbxassetid://190017832"
- rarmhit.Volume = 5
- flange = Instance.new("FlangeSoundEffect",sound)
- flange = Instance.new("FlangeSoundEffect",scream)
- remote = Instance.new("RemoteEvent",owner.Character)
- remote.Name = "diddley doo doodoodododoododooddod"
- owner.Character:FindFirstChild("Animate"):Destroy()
- owner.Character.Humanoid.Animator:Destroy()
- local torso = owner.Character.Torso
- local larm = owner.Character["Left Arm"]
- local rarm = owner.Character["Right Arm"]
- local lleg = owner.Character["Left Leg"]
- local rleg = owner.Character["Right Leg"]
- local head = owner.Character.Head
- local larmsize = larm.Size
- local rarmsize = rarm.Size
- local llegsize = lleg.Size
- local rlegsize = rleg.Size
- local headsize = head.Size
- local torsosize = torso.Size
- local lshoulc0 = torso["Left Shoulder"].C0
- local rshoulc0 = torso["Right Shoulder"].C0
- local lhipc0 = torso["Left Hip"].C0
- local rhipc0 = torso["Right Hip"].C0
- local neckc0 = torso["Neck"].C0
- for i,v in pairs(owner.Character.Torso:GetDescendants()) do
- if v:IsA("JointInstance") and not v:IsA("Glue") then
- local e = Instance.new("Glue",v.Parent)
- e.Part0 = v.Part0
- e.Part1 = v.Part1
- e.C0 = v.C0
- e.C1 = v.C1
- v:Destroy()
- end
- end
- for i,v in pairs(owner.Character.HumanoidRootPart:GetDescendants()) do
- if v:IsA("JointInstance") and not v:IsA("Glue") then
- local e = Instance.new("Glue",v.Parent)
- e.Part0 = v.Part0
- e.Part1 = v.Part1
- e.C0 = v.C0
- e.C1 = v.C1
- e.Name = v.Name
- v:Destroy()
- end
- end
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.Name == "Head" or v.Name == "Right Arm" or v.Name == "Right Leg" or v.Name == "Left Arm" or v.Name == "Left Leg" then
- local e = Instance.new("Part",v)
- e.Size = Vector3.new(1,1,1)
- e.Transparency = 0.3
- local weld = Instance.new("Weld",e)
- weld.Part0 = v
- weld.Part1 = e
- e.Transparency = 1
- e.Name = "hitbox"
- if v.Name ~= "Head" then
- weld.C0 = weld.C0 - Vector3.new(0,0.5,0)
- end
- end
- end
- debounce = false
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("BasePart") then
- v.Touched:Connect(function(p)
- if not debounce and combat then
- debounce = true
- if p.Parent ~= workspace and not p:IsDescendantOf(owner.Character) then
- for i,x in pairs(p.Parent:GetDescendants()) do
- if x:IsA("Humanoid") then
- x.Health = x.Health - x.MaxHealth/5
- hurtnoise.Pitch = math.random(80,120)/100
- hurtnoise:Play()
- end
- end
- end
- wait(math.random(5,10)/100)
- debounce = false
- end
- end)
- end
- end
- owner.Character.Humanoid.HipHeight = -2.5
- owner.Character.Humanoid.WalkSpeed = 0
- --[[remote.OnServerEvent:Connect(function(player,mode,mhp,t)
- if mode == "speedup" and sound.Pitch <= 3 then
- sound.Pitch = sound.Pitch + 0.001
- if sound.Pitch > 3 then
- sound.Pitch = 3
- end
- elseif mode == "slowdown" then
- if sound.Pitch > 1 then
- sound.Pitch = sound.Pitch - 0.01
- end
- elseif mode == "dead" then
- sound.Pitch = sound.Pitch - 0.005
- elseif mode == "stop" then
- scream:Stop()
- elseif mode == "moving" then
- moving = true
- elseif mode == "notmoving" then
- moving = false
- elseif mode == "Lclimb" then
- if t ~= nil and not larm.hitbox:FindFirstChild("climbjoint") then
- if (owner.Character.Torso.Position - mhp).magnitude < 24 and t:IsA("BasePart") and t.Name ~= "Base" then
- local joint = Instance.new("Glue",larm.hitbox)
- local point = Instance.new("Part",joint)
- point.Size = Vector3.new()
- point.Shape = "Ball"
- point.Transparency = 0.3
- point.Position = mhp
- local constraint = Instance.new("WeldConstraint",joint)
- constraint.Part0 = point
- constraint.Part1 = t
- joint.Name = "climbjoint"
- larm.Position = mhp
- joint.Part1 = larm.hitbox
- joint.Part0 = point
- larmhit.Pitch = math.random(95,105)/100
- larmhit:Play()
- end
- end
- elseif mode == "Rclimb" then
- if t ~= nil and not rarm.hitbox:FindFirstChild("climbjoint") then
- if (owner.Character.Torso.Position - mhp).magnitude < 24 and t:IsA("BasePart") and t.Name ~= "Base" then
- local joint = Instance.new("Glue",rarm.hitbox)
- local point = Instance.new("Part",joint)
- point.Size = Vector3.new()
- point.Shape = "Ball"
- point.Transparency = 0.3
- point.Position = mhp
- local constraint = Instance.new("WeldConstraint",joint)
- constraint.Part0 = point
- constraint.Part1 = t
- joint.Name = "climbjoint"
- rarm.Position = mhp
- joint.Part1 = rarm.hitbox
- joint.Part0 = point
- rarmhit.Pitch = math.random(95,105)/100
- rarmhit:Play()
- end
- end
- elseif mode == "Lunclimb" then
- if larm.hitbox:FindFirstChild("climbjoint") then
- larm.hitbox.climbjoint:Destroy()
- end
- elseif mode == "Runclimb" then
- if rarm.hitbox:FindFirstChild("climbjoint") then
- rarm.hitbox.climbjoint:Destroy()
- end
- elseif mode == "enable" then
- scream:Play()
- combat = true
- print("combat enable!1")
- elseif mode == "disable" then
- combat = false
- print("combat disabl.")
- end
- end)--]]
- wait(1)
- --made into a require by DerpzDeNugget_YT.S
- owner = game.Players.LocalPlayer
- print("hi thx for use EricGaming0's scrip")
- print("hold left shift for fast")
- print("press left ctrl to toggl combat :)")
- print("left/right click to grab, has limited range")
- mouse = owner:GetMouse()
- humanoid = owner.Character.Humanoid
- stopmove = true
- direction = "none"
- cam = workspace.CurrentCamera
- mouse = owner:GetMouse()
- rotator = Instance.new("BodyAngularVelocity")
- rotator.MaxTorque = Vector3.new(0,0,0)
- rotator2 = Instance.new("BodyAngularVelocity")
- velocity = Instance.new("BodyVelocity")
- velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- forward = false
- left = false
- right = false
- backward = false
- speed = 50
- shift = false
- xtreme = false
- larmstick = false
- rarmstick = false
- lcombat = false
- mouse.KeyDown:Connect(function(k)
- if k == "w" and not forward then
- forward = true
- elseif k == "a" and not left then
- left = true
- elseif k == "s" and not backward then
- backward = true
- elseif k == "d" and not right then
- right = true
- end
- if string.byte(k) == 32 then
- local ray = Ray.new(owner.Character.Torso.Position, workspace.Base.Position - Vector3.new(0,10,0))
- local part, position = workspace:FindPartOnRay(ray, owner.Character, false, true)
- if (owner.Character.Torso.Position - position).magnitude < 3 then
- owner.Character.Torso.Velocity = Vector3.new(0,400,0)
- end
- end
- if string.byte(k) == 48 then
- print("fAST!")
- shift = true
- end
- if string.byte(k) == 50 then
- local mhp = mouse.Hit.p
- local t = mouse.Target
- if lcombat then
- local mode = "disable"
- remote:FireServer(mode,mhp,t)
- lcombat = false
- else
- local mode = "enable"
- remote:FireServer(mode,mhp,t)
- lcombat = true
- end
- end
- end)
- mouse.Button1Down:Connect(function()
- local mhp = mouse.Hit.p
- local t = mouse.Target
- local mode = "Lclimb"
- end)
- mouse.Button2Down:Connect(function()
- local mhp = mouse.Hit.p
- local t = mouse.Target
- local mode = "Rclimb"
- end)
- mouse.Button1Up:Connect(function()
- local mhp = mouse.Hit.p
- local t = mouse.Target
- local mode = "Lunclimb"
- end)
- mouse.Button2Up:Connect(function()
- local mhp = mouse.Hit.p
- local t = mouse.Target
- local mode = "Runclimb"
- end)
- mouse.KeyUp:Connect(function(k)
- if k == "w" and forward then
- forward = false
- end
- if k == "a" and left then
- left = false
- end
- if k == "s" and backward then
- backward = false
- end
- if k == "d" and right then
- right = false
- end
- if string.byte(k) == 48 then
- shift = false
- end
- end)
- local torso = owner.Character.Torso
- local larm = owner.Character["Left Arm"]
- local rarm = owner.Character["Right Arm"]
- local lleg = owner.Character["Left Leg"]
- local rleg = owner.Character["Right Leg"]
- local head = owner.Character.Head
- local larmsize = larm.Size
- local rarmsize = rarm.Size
- local llegsize = lleg.Size
- local rlegsize = rleg.Size
- local headsize = head.Size
- game:GetService("RunService").Heartbeat:Connect(function()
- local mhp = mouse.Hit.p
- local t = mouse.Target
- if humanoid.Health > 0 then
- rotator.AngularVelocity = Vector3.new(humanoid.MoveDirection.Z*16,0,humanoid.MoveDirection.X*-16)
- vector3 = Vector3.new()
- local mode = speed/100
- remote:FireServer(mode,mhp,t)
- if shift and speed <= 500 then
- local mode = "speedup"
- speed = speed + 0.5
- if speed > 500 then
- speed = 500
- end
- if cam.FieldOfView < 120 then
- cam.FieldOfView = cam.FieldOfView + 0.25
- end
- else
- if speed > 50 then
- local mode = "slowdown"
- speed = speed - 2.5
- remote:FireServer(mode,mhp,t)
- end
- if cam.FieldOfView > 70 then
- cam.FieldOfView = cam.FieldOfView - 0.5
- if cam.FieldOfView < 70 then
- cam.FieldOfView = 70
- end
- end
- end
- if xtreme then
- speed = 1000
- torso.RotVelocity = Vector3.new(humanoid.MoveDirection.Z*speed,0,humanoid.MoveDirection.X*-speed)
- end
- if forward and not backward then
- rotator.Parent = torso
- vector3 = vector3 + cam.CFrame.LookVector * speed
- torso.RotVelocity = Vector3.new(humanoid.MoveDirection.Z*speed,0,humanoid.MoveDirection.X*-speed)
- torso.Velocity = vector3
- end
- if left then
- rotator.Parent = torso
- vector3 = vector3 + cam.CFrame.RightVector * -speed
- torso.RotVelocity = Vector3.new(humanoid.MoveDirection.Z*speed,0,humanoid.MoveDirection.X*-speed)
- torso.Velocity = vector3
- end
- if right then
- rotator.Parent = torso
- vector3 = vector3 + cam.CFrame.RightVector * speed
- torso.RotVelocity = Vector3.new(humanoid.MoveDirection.Z*speed,0,humanoid.MoveDirection.X*-speed)
- torso.Velocity = vector3
- end
- if backward then
- rotator.Parent = torso
- vector3 = vector3 + cam.CFrame.LookVector * -speed
- torso.RotVelocity = Vector3.new(humanoid.MoveDirection.Z*speed,0,humanoid.MoveDirection.X*-speed)
- torso.Velocity = vector3
- end
- if not forward and not backward and not left and not right then
- rotator.Parent = nil
- local mode = "notmoving"
- elseif forward and backward and left and right then
- local mode = "moving"
- end
- else
- mode = "dead"
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement