Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game.PlaceId == 843468296 or game.PlaceId == 843495510 or game.PlaceId == 897312463 then
- -- Instructions:
- --[[
- Any local variables with :
- = LocalPlayer:
- Must be replaced with "owner". So if your local variable is game.Players.LocalPlayer , replace it with owner
- = :GetMouse():
- Remove the variable entirely.
- then paste this over the desired script
- --]]
- 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
- print("Para Script by CHL (SoftlockedUnderZero)")
- print("Void Script Builder Dis: CggyhDE ")
- print("Link to script for you to keep: https://pastebin.com/kF9NVkUy")
- print("Updates:")
- print(" - Attach to someone head = E")
- print(" - Move player to point on mouse (If on someone's head). = R")
- print(" - Toggle total control (If on someone's head). = F")
- print(" - Passive Control: You and the host can control host's movement.")
- print(" - Total Control: Only you can control host's movement.")
- print(" - Jump host (If on someone's head). = Space bar.")
- local char = owner.Character
- local onPerson = false
- local host = nil
- local ConRe = false
- function weldparts(part1,part2)
- local weldc = Instance.new("WeldConstraint",part1)
- weldc.Name = "weld12pts"
- weldc.Part0 = part1
- weldc.Part1 = part2
- end
- function unwalk(player,bool_control)
- local plyr = game:GetService("Players"):FindFirstChild(player)
- if plyr then
- if bool_control==true then
- plyr.DevComputerMovementMode = Enum.DevComputerMovementMode.Scriptable
- plyr.DevTouchMovementMode = Enum.DevTouchMovementMode.Scriptable
- else
- plyr.DevComputerMovementMode = Enum.DevComputerMovementMode.UserChoice
- plyr.DevTouchMovementMode = Enum.DevTouchMovementMode.UserChoice
- end
- end
- end
- if char then
- wait(.1)
- local CCH = char:GetChildren()
- if char["Left Arm"].Size.Y == 2 then
- for i, v in pairs(CCH) do
- if v:IsA("Part") and v.Name~="Head" then
- v.Size = Vector3.new(v.Size.X*.5,v.Size.Y*.5,v.Size.Z*.5)
- end
- end
- end
- local torso = char:FindFirstChild("Torso")
- if char["Left Arm"].Size.Y == 1 then
- if torso then
- torso.Orientation = Vector3.new(0,0,0)
- torso["Right Shoulder"].C1 = CFrame.new(0.25,.5,0) * CFrame.fromOrientation(0,math.rad(90),0)
- torso["Left Shoulder"].C1 = CFrame.new(-0.25,.5,0)* CFrame.fromOrientation(0,math.rad(-90),0)
- torso["Left Hip"].C1 = CFrame.new(-0.75,0,0) * CFrame.fromOrientation(0,math.rad(-90),0)
- torso["Right Hip"].C1 = CFrame.new(0.75,0,0) * CFrame.fromOrientation(0,math.rad(90),0)
- torso["Neck"].C1 = CFrame.new(0,0,0) *CFrame.Angles(math.rad(torso.Orientation.X+90),math.rad(torso.Orientation.y+180),math.rad(torso.Orientation.Z))
- end
- end
- char:FindFirstChildWhichIsA('Humanoid',true).WalkSpeed = 8
- char:FindFirstChildWhichIsA('Humanoid',true).JumpPower = 25
- local bil = Instance.new("BillboardGui",owner.Character.Head)
- bil.Name = "BGLabel"
- bil.ExtentsOffsetWorldSpace = Vector3.new(0, 5, 0)
- bil.MaxDistance = 100
- bil.Size = UDim2.new(0, 300,0, 150)
- local tl = Instance.new("TextLabel",bil)
- tl.Name = "TextLabel"
- tl.Size = UDim2.new(0, 300,0, 150)
- tl.TextScaled = true
- tl.BackgroundTransparency = 1
- tl.TextStrokeTransparency = 0
- tl.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- tl.Font = Enum.Font.Code
- tl.Text = " "
- mouse.KeyDown:Connect(function(key)
- if key=="e" then
- if onPerson==false then
- local mt = mouse.Target
- if mt==nil then
- elseif mt.Parent:IsA("Accessory") then
- local per = mt.Parent.Parent
- if per:FindFirstChild("Head") and char:FindFirstChild("HumanoidRootPart") and char:FindFirstChildWhichIsA("Humanoid") and game:GetService("Players"):FindFirstChild(per.Name) then
- char.HumanoidRootPart.CFrame=per.Head.CFrame * CFrame.new(0,(per.Head.Size.Y*.5) + .75,.5)
- weldparts(char.HumanoidRootPart,per.Head)
- char:FindFirstChildWhichIsA('Humanoid',true).JumpPower = 0
- char:FindFirstChildWhichIsA('Humanoid',true).Sit = true
- local cCc = char:GetChildren()
- for _,v in pairs(cCc) do
- if v:IsA("MeshPart") or v:IsA("Part") then
- v.Massless = true
- end
- end
- if char:FindFirstChild'Fly' then
- char:FindFirstChild'Fly':Destroy()
- end
- char.ChildAdded:Connect(function(ch)
- if ch.Name=='Fly' then
- ch:Destroy()
- end
- end)
- local hu = per:FindFirstChildWhichIsA("Humanoid")
- if per:FindFirstChildWhichIsA("Humanoid") then
- if hu.RigType==Enum.HumanoidRigType.R6 then
- if per:FindFirstChild("C1") then
- per:FindFirstChild("C1"):Destroy()
- end
- if per:FindFirstChild("C2") then
- per:FindFirstChild("C2"):Destroy()
- end
- if per:FindFirstChild("C3") then
- per:FindFirstChild("C3"):Destroy()
- end
- if per:FindFirstChild("C4") then
- per:FindFirstChild("C4"):Destroy()
- end
- if per:FindFirstChild("Left Arm") then
- local c1 = Instance.new("Part",per)
- c1.Size = Vector3.new(per["Left Arm"].Size.X*1.05,per["Left Arm"].Size.Y*.1,per["Left Arm"].Size.Z*1.05)
- c1.name = "C1"
- c1.BrickColor = BrickColor.new("Lime green")
- c1.CanCollide = false
- c1.CFrame = per["Left Arm"].CFrame * CFrame.new(0,per["Left Arm"].Size.Y*-.25,0)
- weldparts(per["Left Arm"],c1)
- c1.Material = Enum.Material.Neon
- end
- if per:FindFirstChild("Right Arm") then
- local c2 = Instance.new("Part",per)
- c2.Size = Vector3.new(per["Right Arm"].Size.X*1.05,per["Right Arm"].Size.Y*.1,per["Right Arm"].Size.Z*1.05)
- c2.name = "C2"
- c2.BrickColor = BrickColor.new("Lime green")
- c2.CanCollide = false
- c2.CFrame = per["Right Arm"].CFrame * CFrame.new(0,per["Right Arm"].Size.Y*-.25,0)
- weldparts(per["Right Arm"],c2)
- c2.Material = Enum.Material.Neon
- end
- if per:FindFirstChild("Right Leg") then
- local c3 = Instance.new("Part",per)
- c3.Size = Vector3.new(per["Right Leg"].Size.X*1.05,per["Right Leg"].Size.Y*.1,per["Right Leg"].Size.Z*1.05)
- c3.name = "C3"
- c3.BrickColor = BrickColor.new("Lime green")
- c3.CanCollide = false
- c3.CFrame = per["Right Leg"].CFrame * CFrame.new(0,per["Right Leg"].Size.Y*-.25,0)
- weldparts(per["Right Leg"],c3)
- c3.Material = Enum.Material.Neon
- end
- if per:FindFirstChild("Left Leg") then
- local c4 = Instance.new("Part",per)
- c4.Size = Vector3.new(per["Left Leg"].Size.X*1.05,per["Left Leg"].Size.Y*.1,per["Left Leg"].Size.Z*1.05)
- c4.name = "C4"
- c4.BrickColor = BrickColor.new("Lime green")
- c4.CanCollide = false
- c4.CFrame = per["Left Leg"].CFrame * CFrame.new(0,per["Left Leg"].Size.Y*-.25,0)
- weldparts(per["Left Leg"],c4)
- c4.Material = Enum.Material.Neon
- end
- if owner.Character.Head:FindFirstChild("BGLabel") then
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = " "
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81)
- end
- else
- if per:FindFirstChild("C1") then
- per:FindFirstChild("C1"):Destroy()
- end
- if per:FindFirstChild("C2") then
- per:FindFirstChild("C2"):Destroy()
- end
- if per:FindFirstChild("C3") then
- per:FindFirstChild("C3"):Destroy()
- end
- if per:FindFirstChild("C4") then
- per:FindFirstChild("C4"):Destroy()
- end
- if per:FindFirstChild("LeftHand") then
- local c1 = Instance.new("Part",per)
- c1.Size = Vector3.new(per["LeftHand"].Size.X*1.05,per["LeftHand"].Size.Y*.1,per["LeftHand"].Size.Z*1.05)
- c1.name = "C1"
- c1.BrickColor = BrickColor.new("Lime green")
- c1.CanCollide = false
- c1.CFrame = per["LeftHand"].CFrame
- weldparts(per["LeftHand"],c1)
- c1.Material = Enum.Material.Neon
- end
- if per:FindFirstChild("RightHand") then
- local c2 = Instance.new("Part",per)
- c2.Size = Vector3.new(per["RightHand"].Size.X*1.05,per["RightHand"].Size.Y*.1,per["RightHand"].Size.Z*1.05)
- c2.name = "C2"
- c2.BrickColor = BrickColor.new("Lime green")
- c2.CanCollide = false
- c2.CFrame = per["RightHand"].CFrame
- weldparts(per["RightHand"],c2)
- c2.Material = Enum.Material.Neon
- end
- if per:FindFirstChild("RightFoot") then
- local c3 = Instance.new("Part",per)
- c3.Size = Vector3.new(per["RightFoot"].Size.X*1.05,per["RightFoot"].Size.Y*.1,per["RightFoot"].Size.Z*1.05)
- c3.name = "C3"
- c3.BrickColor = BrickColor.new("Lime green")
- c3.CanCollide = false
- c3.CFrame = per["RightFoot"].CFrame
- weldparts(per["RightFoot"],c3)
- c3.Material = Enum.Material.Neon
- end
- if per:FindFirstChild("LeftFoot") then
- local c4 = Instance.new("Part",per)
- c4.Size = Vector3.new(per["LeftFoot"].Size.X*1.05,per["LeftFoot"].Size.Y*.1,per["LeftFoot"].Size.Z*1.05)
- c4.name = "C4"
- c4.BrickColor = BrickColor.new("Lime green")
- c4.CanCollide = false
- c4.CFrame = per["LeftFoot"].CFrame
- weldparts(per["LeftFoot"],c4)
- c4.Material = Enum.Material.Neon
- end
- if owner.Character.Head:FindFirstChild("BGLabel") then
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = " "
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81)
- end
- end
- end
- host = per.Name
- onPerson=true
- else
- print("Uh oh!")
- end
- ConRe = false
- elseif mt.Parent:FindFirstChildWhichIsA("Humanoid") then
- local per = mt.Parent
- if per:FindFirstChild("Head") and char:FindFirstChild("HumanoidRootPart") and char:FindFirstChildWhichIsA("Humanoid") and game:GetService("Players"):FindFirstChild(per.Name) then
- char.HumanoidRootPart.CFrame=per.Head.CFrame * CFrame.new(0,(per.Head.Size.Y*.5) + .75,.5)
- weldparts(char.HumanoidRootPart,per.Head)
- char:FindFirstChildWhichIsA('Humanoid',true).JumpPower = 0
- char:FindFirstChildWhichIsA('Humanoid',true).Sit = true
- local cCc = char:GetChildren()
- for _,v in pairs(cCc) do
- if v:IsA("MeshPart") or v:IsA("Part") then
- v.Massless = true
- end
- end
- local hu = per:FindFirstChildWhichIsA("Humanoid")
- if per:FindFirstChildWhichIsA("Humanoid") then
- if hu.RigType==Enum.HumanoidRigType.R6 then
- if per:FindFirstChild("C1") then
- per:FindFirstChild("C1"):Destroy()
- end
- if per:FindFirstChild("C2") then
- per:FindFirstChild("C2"):Destroy()
- end
- if per:FindFirstChild("C3") then
- per:FindFirstChild("C3"):Destroy()
- end
- if per:FindFirstChild("C4") then
- per:FindFirstChild("C4"):Destroy()
- end
- if per:FindFirstChild("Left Arm") then
- local c1 = Instance.new("Part",per)
- c1.Size = Vector3.new(per["Left Arm"].Size.X*1.05,per["Left Arm"].Size.Y*.1,per["Left Arm"].Size.Z*1.05)
- c1.name = "C1"
- c1.BrickColor = BrickColor.new("Lime green")
- c1.CanCollide = false
- c1.CFrame = per["Left Arm"].CFrame * CFrame.new(0,per["Left Arm"].Size.Y*-.25,0)
- weldparts(per["Left Arm"],c1)
- c1.Material = Enum.Material.Neon
- end
- if per:FindFirstChild("Right Arm") then
- local c2 = Instance.new("Part",per)
- c2.Size = Vector3.new(per["Right Arm"].Size.X*1.05,per["Right Arm"].Size.Y*.1,per["Right Arm"].Size.Z*1.05)
- c2.name = "C2"
- c2.BrickColor = BrickColor.new("Lime green")
- c2.CanCollide = false
- c2.CFrame = per["Right Arm"].CFrame * CFrame.new(0,per["Right Arm"].Size.Y*-.25,0)
- weldparts(per["Right Arm"],c2)
- c2.Material = Enum.Material.Neon
- end
- if per:FindFirstChild("Right Leg") then
- local c3 = Instance.new("Part",per)
- c3.Size = Vector3.new(per["Right Leg"].Size.X*1.05,per["Right Leg"].Size.Y*.1,per["Right Leg"].Size.Z*1.05)
- c3.name = "C3"
- c3.BrickColor = BrickColor.new("Lime green")
- c3.CanCollide = false
- c3.CFrame = per["Right Leg"].CFrame * CFrame.new(0,per["Right Leg"].Size.Y*-.25,0)
- weldparts(per["Right Leg"],c3)
- c3.Material = Enum.Material.Neon
- end
- if per:FindFirstChild("Left Leg") then
- local c4 = Instance.new("Part",per)
- c4.Size = Vector3.new(per["Left Leg"].Size.X*1.05,per["Left Leg"].Size.Y*.1,per["Left Leg"].Size.Z*1.05)
- c4.name = "C4"
- c4.BrickColor = BrickColor.new("Lime green")
- c4.CanCollide = false
- c4.CFrame = per["Left Leg"].CFrame * CFrame.new(0,per["Left Leg"].Size.Y*-.25,0)
- weldparts(per["Left Leg"],c4)
- c4.Material = Enum.Material.Neon
- end
- if owner.Character.Head:FindFirstChild("BGLabel") then
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = " "
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81)
- end
- else
- if per:FindFirstChild("C1") then
- per:FindFirstChild("C1"):Destroy()
- end
- if per:FindFirstChild("C2") then
- per:FindFirstChild("C2"):Destroy()
- end
- if per:FindFirstChild("C3") then
- per:FindFirstChild("C3"):Destroy()
- end
- if per:FindFirstChild("C4") then
- per:FindFirstChild("C4"):Destroy()
- end
- if per:FindFirstChild("LeftHand") then
- local c1 = Instance.new("Part",per)
- c1.Size = Vector3.new(per["LeftHand"].Size.X*1.05,per["LeftHand"].Size.Y*.1,per["LeftHand"].Size.Z*1.05)
- c1.name = "C1"
- c1.BrickColor = BrickColor.new("Lime green")
- c1.CanCollide = false
- c1.CFrame = per["LeftHand"].CFrame
- weldparts(per["LeftHand"],c1)
- c1.Material = Enum.Material.Neon
- end
- if per:FindFirstChild("RightHand") then
- local c2 = Instance.new("Part",per)
- c2.Size = Vector3.new(per["RightHand"].Size.X*1.05,per["RightHand"].Size.Y*.1,per["RightHand"].Size.Z*1.05)
- c2.name = "C2"
- c2.BrickColor = BrickColor.new("Lime green")
- c2.CanCollide = false
- c2.CFrame = per["RightHand"].CFrame
- weldparts(per["RightHand"],c2)
- c2.Material = Enum.Material.Neon
- end
- if per:FindFirstChild("RightFoot") then
- local c3 = Instance.new("Part",per)
- c3.Size = Vector3.new(per["RightFoot"].Size.X*1.05,per["RightFoot"].Size.Y*.1,per["RightFoot"].Size.Z*1.05)
- c3.name = "C3"
- c3.BrickColor = BrickColor.new("Lime green")
- c3.CanCollide = false
- c3.CFrame = per["RightFoot"].CFrame
- weldparts(per["RightFoot"],c3)
- c3.Material = Enum.Material.Neon
- end
- if per:FindFirstChild("LeftFoot") then
- local c4 = Instance.new("Part",per)
- c4.Size = Vector3.new(per["LeftFoot"].Size.X*1.05,per["LeftFoot"].Size.Y*.1,per["LeftFoot"].Size.Z*1.05)
- c4.name = "C4"
- c4.BrickColor = BrickColor.new("Lime green")
- c4.CanCollide = false
- c4.CFrame = per["LeftFoot"].CFrame
- weldparts(per["LeftFoot"],c4)
- c4.Material = Enum.Material.Neon
- end
- if owner.Character.Head:FindFirstChild("BGLabel") then
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = " "
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81)
- end
- end
- end
- host = per.Name
- onPerson=true
- else
- print("Uh oh!")
- end
- ConRe = false
- end
- else
- if game:GetService("Players"):FindFirstChild(host) then
- local per = game:GetService("Players"):FindFirstChild(host).Character
- local cCc = char:GetChildren()
- char:FindFirstChildWhichIsA('Humanoid',true).JumpPower = 25
- char:FindFirstChildWhichIsA('Humanoid',true).Sit = false
- for _,v in pairs(cCc) do
- if v:IsA("MeshPart") or v:IsA("Part") then
- v.Massless = false
- end
- end
- char:FindFirstChildWhichIsA('Humanoid',true).PlatformStand = false
- if char.HumanoidRootPart:FindFirstChild("weld12pts") then
- char.HumanoidRootPart:FindFirstChild("weld12pts"):Destroy()
- end
- unwalk(host,false)
- if per:FindFirstChild("C1") then
- per:FindFirstChild("C1"):Destroy()
- end
- if per:FindFirstChild("C2") then
- per:FindFirstChild("C2"):Destroy()
- end
- if per:FindFirstChild("C3") then
- per:FindFirstChild("C3"):Destroy()
- end
- if per:FindFirstChild("C4") then
- per:FindFirstChild("C4"):Destroy()
- end
- if owner.Character.Head:FindFirstChild("BGLabel") then
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = " "
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- end
- end
- host = nil
- onPerson =false
- ConRe = false
- end
- elseif key=="r" then
- if host~=nil then
- if mouse.Target~=nil then
- local per = game:GetService("Players"):FindFirstChild(host).Character
- if per:FindFirstChild("Humanoid") then
- per:FindFirstChildWhichIsA('Humanoid',true):MoveTo(mouse.Hit.Position)
- end
- end
- end
- elseif key=="f" then
- if host~=nil then
- if ConRe == false then
- local per = game:GetService("Players"):FindFirstChild(host).Character
- if per:FindFirstChild("C1") then
- per:FindFirstChild("C1").BrickColor = BrickColor.new("Really red")
- end
- if per:FindFirstChild("C2") then
- per:FindFirstChild("C2").BrickColor = BrickColor.new("Really red")
- end
- if per:FindFirstChild("C3") then
- per:FindFirstChild("C3").BrickColor = BrickColor.new("Really red")
- end
- if per:FindFirstChild("C4") then
- per:FindFirstChild("C4").BrickColor = BrickColor.new("Really red")
- end
- unwalk(host,true)
- ConRe = true
- if owner.Character.Head:FindFirstChild("BGLabel") then
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = "Total Control"
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(255, 0, 0)
- end
- else
- local per = game:GetService("Players"):FindFirstChild(host).Character
- if per:FindFirstChild("C1") then
- per:FindFirstChild("C1").BrickColor = BrickColor.new("Lime green")
- end
- if per:FindFirstChild("C2") then
- per:FindFirstChild("C2").BrickColor = BrickColor.new("Lime green")
- end
- if per:FindFirstChild("C3") then
- per:FindFirstChild("C3").BrickColor = BrickColor.new("Lime green")
- end
- if per:FindFirstChild("C4") then
- per:FindFirstChild("C4").BrickColor = BrickColor.new("Lime green")
- end
- unwalk(host,false)
- ConRe = false
- if owner.Character.Head:FindFirstChild("BGLabel") then
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = "Passive Control"
- owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81)
- end
- end
- end
- end
- end)
- char:FindFirstChildWhichIsA('Humanoid',true).Seated:Connect(function(bool)
- if bool==true then
- torso.Orientation = Vector3.new(0,0,0)
- torso["Right Shoulder"].C1 = CFrame.new(0.25,.25,-.25) * CFrame.fromOrientation(0,math.rad(90),0)
- torso["Left Shoulder"].C1 = CFrame.new(-0.25,.25,-.25)* CFrame.fromOrientation(0,math.rad(-90),0)
- torso["Left Hip"].C1 = CFrame.new(-0.75,.5,.5) * CFrame.fromOrientation(0,math.rad(-90),0)
- torso["Right Hip"].C1 = CFrame.new(0.75,.5,.5) * CFrame.fromOrientation(0,math.rad(90),0)
- else
- if onPerson==true then
- char:FindFirstChildWhichIsA('Humanoid',true).Sit = true
- local cphost = game:GetService("Players"):FindFirstChild(host).Character
- cphost:FindFirstChildWhichIsA("Humanoid").Jump = true
- else
- torso.Orientation = Vector3.new(0,0,0)
- torso["Right Shoulder"].C1 = CFrame.new(0.25,.5,0) * CFrame.fromOrientation(0,math.rad(90),0)
- torso["Left Shoulder"].C1 = CFrame.new(-0.25,.5,0)* CFrame.fromOrientation(0,math.rad(-90),0)
- torso["Left Hip"].C1 = CFrame.new(-0.75,0,0) * CFrame.fromOrientation(0,math.rad(-90),0)
- torso["Right Hip"].C1 = CFrame.new(0.75,0,0) * CFrame.fromOrientation(0,math.rad(90),0)
- end
- end
- end)
- char:FindFirstChildWhichIsA('Humanoid',true).Died:Connect(function()
- if onPerson==true then
- if game.PlaceId==843495510 or owner.UserId==180045431 then
- local hostc = game.Workspace:FindFirstChild(host)
- if hostc:FindFirstChild("Humanoid") then
- hostc:FindFirstChild("Humanoid").Health = 0
- elseif hostc:FindFirstChild("Head") then
- hostc:FindFirstChild("Head"):Destroy()
- elseif hostc:FindFirstChild("UpperTorso") then
- hostc:FindFirstChild("UpperTorso"):Destroy()
- elseif hostc:FindFirstChild("Torso") then
- hostc:FindFirstChild("Torso"):Destroy()
- end
- end
- unwalk(host,false)
- ConRe = false
- end
- end)
- if host~=nil then
- local cphost = game:GetService("Players"):FindFirstChild(host).Character
- char:FindFirstChildWhichIsA('Humanoid',true).HealthChanged:Connect(function(hel)
- chost:FindFirstChildWhichIsA('Humanoid',true).Health = (char:FindFirstChildWhichIsA('Humanoid',true).Health*cphost:FindFirstChildWhichIsA('Humanoid',true).MaxHealth/char:FindFirstChildWhichIsA('Humanoid',true).MaxHealth)
- print(char:FindFirstChildWhichIsA('Humanoid',true).Health.." / "..char:FindFirstChildWhichIsA('Humanoid',true).MaxHealth)
- print(cphost:FindFirstChildWhichIsA('Humanoid',true).Health.." / "..cphost:FindFirstChildWhichIsA('Humanoid',true).MaxHealth)
- end)
- cphost:FindFirstChildWhichIsA('Humanoid',true).Died:Connect(function()
- local weldp = char.HumanoidRootPart:FindFirstChildWhichIsA("WeldConstraint")
- if weldp then
- welp:Destroy()
- end
- end)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement