Awooslayer699

Untitled

Mar 13th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game.PlaceId == 843468296 or game.PlaceId == 843495510 or game.PlaceId == 897312463 then
  2. -- Instructions:
  3. --[[
  4. Any local variables with :
  5.  = LocalPlayer:
  6.     Must be replaced with "owner". So if your local variable is game.Players.LocalPlayer , replace it with owner
  7.  = :GetMouse():
  8.     Remove the variable entirely.
  9.  
  10. then paste this over the desired script
  11. --]]
  12.  
  13. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  14. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  15. do
  16.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  17.     script.Parent = Player.Character
  18.  
  19.     --RemoteEvent for communicating
  20.     local Event = Instance.new("RemoteEvent")
  21.     Event.Name = "UserInput_Event"
  22.     --Fake event to make stuff like Mouse.KeyDown work
  23.     local function fakeEvent()
  24.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  25.         t.connect = t.Connect
  26.         return t
  27.     end
  28.     --Creating fake input objects with fake variables
  29.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  30.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  31.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  32.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  33.     end}
  34.     --Merged 2 functions into one by checking amount of arguments
  35.     CAS.UnbindAction = CAS.BindAction
  36.  
  37.     --This function will trigger the events that have been :Connect()'ed
  38.     local function te(self,ev,...)
  39.         local t = m[ev]
  40.         if t and t._fakeEvent and t.Function then
  41.             t.Function(...)
  42.         end
  43.     end
  44.     m.TrigEvent = te
  45.     UIS.TrigEvent = te
  46.     Event.OnServerEvent:Connect(function(plr,io)
  47.         if plr~=Player then return end
  48.         if io.isMouse then
  49.             m.Target = io.Target
  50.             m.Hit = io.Hit
  51.         else
  52.             local b = io.UserInputState == Enum.UserInputState.Begin
  53.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  54.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  55.             end
  56.             for _,t in pairs(CAS.Actions) do
  57.                 for _,k in pairs(t.Keys) do
  58.                     if k==io.KeyCode then
  59.                         t.Function(t.Name,io.UserInputState,io)
  60.                     end
  61.                 end
  62.             end
  63.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  64.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  65.         end
  66.     end)
  67.     Event.Parent = NLS([==[
  68.     local Player = game:GetService("Players").LocalPlayer
  69.     local Event = script:WaitForChild("UserInput_Event")
  70.     local UIS = game:GetService("UserInputService")
  71.     local input = function(io,a)
  72.         if a then return end
  73.         --Since InputObject is a client-side instance, we create and pass table instead
  74.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  75.     end
  76.     UIS.InputBegan:Connect(input)
  77.     UIS.InputEnded:Connect(input)
  78.     local Mouse = Player:GetMouse()
  79.     local h,t
  80.     --Give the server mouse data 30 times every second, but only if the values changed
  81.     --If player is not moving their mouse, client won't fire events
  82.     while wait(1/30) do
  83.         if h~=Mouse.Hit or t~=Mouse.Target then
  84.             h,t=Mouse.Hit,Mouse.Target
  85.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  86.         end
  87.     end]==],Player.Character)
  88.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  89. end
  90. -- End of FE converter
  91.  
  92. print("Para Script by CHL (SoftlockedUnderZero)")
  93. print("Void Script Builder Dis: CggyhDE ")
  94. print("Link to script for you to keep: https://pastebin.com/kF9NVkUy")
  95. print("Updates:")
  96. print(" - Attach to someone head = E")
  97. print(" - Move player to point on mouse (If on someone's head). = R")
  98. print(" - Toggle total control (If on someone's head). = F")
  99. print("   - Passive Control: You and the host can control host's movement.")
  100. print("   - Total Control: Only you can control host's movement.")
  101. print(" - Jump host (If on someone's head). = Space bar.")
  102.  
  103. local char = owner.Character
  104. local onPerson = false
  105. local host = nil
  106. local ConRe = false
  107. function weldparts(part1,part2)
  108.     local weldc = Instance.new("WeldConstraint",part1)
  109.     weldc.Name = "weld12pts"
  110.     weldc.Part0 = part1
  111.     weldc.Part1 = part2
  112. end
  113. function unwalk(player,bool_control)
  114.     local plyr = game:GetService("Players"):FindFirstChild(player)
  115.     if plyr then
  116.         if bool_control==true then
  117.             plyr.DevComputerMovementMode = Enum.DevComputerMovementMode.Scriptable
  118.             plyr.DevTouchMovementMode = Enum.DevTouchMovementMode.Scriptable
  119.         else
  120.             plyr.DevComputerMovementMode = Enum.DevComputerMovementMode.UserChoice
  121.             plyr.DevTouchMovementMode = Enum.DevTouchMovementMode.UserChoice
  122.         end
  123.     end
  124. end
  125.  
  126. if char then
  127.     wait(.1)
  128.     local CCH = char:GetChildren()
  129.     if char["Left Arm"].Size.Y == 2 then
  130.         for i, v in pairs(CCH) do
  131.             if v:IsA("Part") and v.Name~="Head" then
  132.                 v.Size = Vector3.new(v.Size.X*.5,v.Size.Y*.5,v.Size.Z*.5)
  133.             end
  134.         end
  135.     end
  136.     local torso = char:FindFirstChild("Torso")
  137.     if char["Left Arm"].Size.Y == 1 then
  138.         if torso then
  139.             torso.Orientation = Vector3.new(0,0,0)
  140.             torso["Right Shoulder"].C1 = CFrame.new(0.25,.5,0) * CFrame.fromOrientation(0,math.rad(90),0)
  141.             torso["Left Shoulder"].C1 = CFrame.new(-0.25,.5,0)* CFrame.fromOrientation(0,math.rad(-90),0)
  142.             torso["Left Hip"].C1 = CFrame.new(-0.75,0,0) * CFrame.fromOrientation(0,math.rad(-90),0)
  143.             torso["Right Hip"].C1 = CFrame.new(0.75,0,0) * CFrame.fromOrientation(0,math.rad(90),0)
  144.             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))
  145.         end
  146.     end
  147.  
  148.     char.Humanoid.WalkSpeed = 8
  149.     char.Humanoid.JumpPower = 25
  150.    
  151.     local bil = Instance.new("BillboardGui",owner.Character.Head)
  152.     bil.Name = "BGLabel"
  153.     bil.ExtentsOffsetWorldSpace = Vector3.new(0, 5, 0)
  154.     bil.MaxDistance = 100
  155.     bil.Size = UDim2.new(0, 300,0, 150)
  156.     local tl = Instance.new("TextLabel",bil)
  157.     tl.Name = "TextLabel"
  158.     tl.Size = UDim2.new(0, 300,0, 150)
  159.     tl.TextScaled = true
  160.     tl.BackgroundTransparency = 1
  161.     tl.TextStrokeTransparency = 0
  162.     tl.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  163.     tl.Font = Enum.Font.Code
  164.     tl.Text = "No host"
  165.     mouse.KeyDown:Connect(function(key)
  166.         if key=="e" then
  167.             if onPerson==false then
  168.                 local mt = mouse.Target
  169.                 if mt==nil then
  170.                 elseif mt.Parent:IsA("Accessory") then
  171.                     local per = mt.Parent.Parent
  172.                     if per:FindFirstChild("Head") and char:FindFirstChild("HumanoidRootPart") and char:FindFirstChildWhichIsA("Humanoid") and game:GetService("Players"):FindFirstChild(per.Name) then
  173.                         char.HumanoidRootPart.CFrame=per.Head.CFrame * CFrame.new(0,(per.Head.Size.Y*.5) + .75,.5)
  174.                         weldparts(char.HumanoidRootPart,per.Head)
  175.                         char.Humanoid.JumpPower = 0
  176.                         char.Humanoid.Sit = true
  177.                         local cCc = char:GetChildren()
  178.                         for _,v in pairs(cCc) do
  179.                             if v:IsA("MeshPart") or v:IsA("Part") then
  180.                                 v.Massless = true
  181.                             end
  182.                         end
  183.  
  184.                         local hu = per:FindFirstChildWhichIsA("Humanoid")
  185.                         if per:FindFirstChildWhichIsA("Humanoid") then
  186.                             if hu.RigType==Enum.HumanoidRigType.R6 then
  187.                                 if per:FindFirstChild("C1") then
  188.                                     per:FindFirstChild("C1"):Destroy()
  189.                                 end
  190.                                 if per:FindFirstChild("C2") then
  191.                                     per:FindFirstChild("C2"):Destroy()
  192.                                 end
  193.                                 if per:FindFirstChild("C3") then
  194.                                     per:FindFirstChild("C3"):Destroy()
  195.                                 end
  196.                                 if per:FindFirstChild("C4") then
  197.                                     per:FindFirstChild("C4"):Destroy()
  198.                                 end
  199.                                 if per:FindFirstChild("Left Arm") then
  200.                                     local c1 = Instance.new("Part",per)
  201.                                     c1.Size = Vector3.new(per["Left Arm"].Size.X*1.05,per["Left Arm"].Size.Y*.1,per["Left Arm"].Size.Z*1.05)
  202.                                     c1.name = "C1"
  203.                                     c1.BrickColor = BrickColor.new("Lime green")
  204.                                     c1.CanCollide = false
  205.                                     c1.CFrame = per["Left Arm"].CFrame * CFrame.new(0,per["Left Arm"].Size.Y*-.25,0)
  206.                                     weldparts(per["Left Arm"],c1)
  207.                                     c1.Material = Enum.Material.Neon
  208.                                 end
  209.  
  210.                                 if per:FindFirstChild("Right Arm") then
  211.                                     local c2 = Instance.new("Part",per)
  212.                                     c2.Size = Vector3.new(per["Right Arm"].Size.X*1.05,per["Right Arm"].Size.Y*.1,per["Right Arm"].Size.Z*1.05)
  213.                                     c2.name = "C2"
  214.                                     c2.BrickColor = BrickColor.new("Lime green")
  215.                                     c2.CanCollide = false
  216.                                     c2.CFrame = per["Right Arm"].CFrame * CFrame.new(0,per["Right Arm"].Size.Y*-.25,0)
  217.                                     weldparts(per["Right Arm"],c2)
  218.                                     c2.Material = Enum.Material.Neon
  219.                                 end
  220.                                
  221.                                 if per:FindFirstChild("Right Leg") then
  222.                                     local c3 = Instance.new("Part",per)
  223.                                     c3.Size = Vector3.new(per["Right Leg"].Size.X*1.05,per["Right Leg"].Size.Y*.1,per["Right Leg"].Size.Z*1.05)
  224.                                     c3.name = "C3"
  225.                                     c3.BrickColor = BrickColor.new("Lime green")
  226.                                     c3.CanCollide = false
  227.                                     c3.CFrame = per["Right Leg"].CFrame * CFrame.new(0,per["Right Leg"].Size.Y*-.25,0)
  228.                                     weldparts(per["Right Leg"],c3)
  229.                                     c3.Material = Enum.Material.Neon
  230.                                 end
  231.                                    
  232.                                 if per:FindFirstChild("Left Leg") then
  233.                                     local c4 = Instance.new("Part",per)
  234.                                     c4.Size = Vector3.new(per["Left Leg"].Size.X*1.05,per["Left Leg"].Size.Y*.1,per["Left Leg"].Size.Z*1.05)
  235.                                     c4.name = "C4"
  236.                                     c4.BrickColor = BrickColor.new("Lime green")
  237.                                     c4.CanCollide = false
  238.                                     c4.CFrame = per["Left Leg"].CFrame * CFrame.new(0,per["Left Leg"].Size.Y*-.25,0)
  239.                                     weldparts(per["Left Leg"],c4)
  240.                                     c4.Material = Enum.Material.Neon
  241.                                 end
  242.                                 if owner.Character.Head:FindFirstChild("BGLabel") then
  243.                                     owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = "Passive Control"
  244.                                     owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81)
  245.                                 end
  246.                             else
  247.                                 if per:FindFirstChild("C1") then
  248.                                     per:FindFirstChild("C1"):Destroy()
  249.                                 end
  250.                                 if per:FindFirstChild("C2") then
  251.                                     per:FindFirstChild("C2"):Destroy()
  252.                                 end
  253.                                 if per:FindFirstChild("C3") then
  254.                                     per:FindFirstChild("C3"):Destroy()
  255.                                 end
  256.                                 if per:FindFirstChild("C4") then
  257.                                     per:FindFirstChild("C4"):Destroy()
  258.                                 end
  259.                                 if per:FindFirstChild("LeftHand") then
  260.                                     local c1 = Instance.new("Part",per)
  261.                                     c1.Size = Vector3.new(per["LeftHand"].Size.X*1.05,per["LeftHand"].Size.Y*.1,per["LeftHand"].Size.Z*1.05)
  262.                                     c1.name = "C1"
  263.                                     c1.BrickColor = BrickColor.new("Lime green")
  264.                                     c1.CanCollide = false
  265.                                     c1.CFrame = per["LeftHand"].CFrame
  266.                                     weldparts(per["LeftHand"],c1)
  267.                                     c1.Material = Enum.Material.Neon
  268.                                 end
  269.  
  270.                                 if per:FindFirstChild("RightHand") then
  271.                                     local c2 = Instance.new("Part",per)
  272.                                     c2.Size = Vector3.new(per["RightHand"].Size.X*1.05,per["RightHand"].Size.Y*.1,per["RightHand"].Size.Z*1.05)
  273.                                     c2.name = "C2"
  274.                                     c2.BrickColor = BrickColor.new("Lime green")
  275.                                     c2.CanCollide = false
  276.                                     c2.CFrame = per["RightHand"].CFrame
  277.                                     weldparts(per["RightHand"],c2)
  278.                                     c2.Material = Enum.Material.Neon
  279.                                 end
  280.                                
  281.                                 if per:FindFirstChild("RightFoot") then
  282.                                     local c3 = Instance.new("Part",per)
  283.                                     c3.Size = Vector3.new(per["RightFoot"].Size.X*1.05,per["RightFoot"].Size.Y*.1,per["RightFoot"].Size.Z*1.05)
  284.                                     c3.name = "C3"
  285.                                     c3.BrickColor = BrickColor.new("Lime green")
  286.                                     c3.CanCollide = false
  287.                                     c3.CFrame = per["RightFoot"].CFrame
  288.                                     weldparts(per["RightFoot"],c3)
  289.                                     c3.Material = Enum.Material.Neon
  290.                                 end
  291.                                    
  292.                                 if per:FindFirstChild("LeftFoot") then
  293.                                     local c4 = Instance.new("Part",per)
  294.                                     c4.Size = Vector3.new(per["LeftFoot"].Size.X*1.05,per["LeftFoot"].Size.Y*.1,per["LeftFoot"].Size.Z*1.05)
  295.                                     c4.name = "C4"
  296.                                     c4.BrickColor = BrickColor.new("Lime green")
  297.                                     c4.CanCollide = false
  298.                                     c4.CFrame = per["LeftFoot"].CFrame
  299.                                     weldparts(per["LeftFoot"],c4)
  300.                                     c4.Material = Enum.Material.Neon
  301.                                 end
  302.                                 if owner.Character.Head:FindFirstChild("BGLabel") then
  303.                                     owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = "Passive Control"
  304.                                     owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81)
  305.                                 end
  306.                             end
  307.                         end
  308.  
  309.                         host = per.Name
  310.                         onPerson=true
  311.                     else
  312.                         print("Uh oh!")
  313.                     end
  314.                     ConRe = false
  315.                 elseif mt.Parent:FindFirstChildWhichIsA("Humanoid") then
  316.                     local per = mt.Parent
  317.                     if per:FindFirstChild("Head") and char:FindFirstChild("HumanoidRootPart") and char:FindFirstChildWhichIsA("Humanoid") and game:GetService("Players"):FindFirstChild(per.Name) then
  318.                         char.HumanoidRootPart.CFrame=per.Head.CFrame * CFrame.new(0,(per.Head.Size.Y*.5) + .75,.5)
  319.                         weldparts(char.HumanoidRootPart,per.Head)
  320.                         char.Humanoid.JumpPower = 0
  321.                         char.Humanoid.Sit = true
  322.                         local cCc = char:GetChildren()
  323.                         for _,v in pairs(cCc) do
  324.                             if v:IsA("MeshPart") or v:IsA("Part") then
  325.                                 v.Massless = true
  326.                             end
  327.                         end
  328.  
  329.                         local hu = per:FindFirstChildWhichIsA("Humanoid")
  330.                         if per:FindFirstChildWhichIsA("Humanoid") then
  331.                             if hu.RigType==Enum.HumanoidRigType.R6 then
  332.                                 if per:FindFirstChild("C1") then
  333.                                     per:FindFirstChild("C1"):Destroy()
  334.                                 end
  335.                                 if per:FindFirstChild("C2") then
  336.                                     per:FindFirstChild("C2"):Destroy()
  337.                                 end
  338.                                 if per:FindFirstChild("C3") then
  339.                                     per:FindFirstChild("C3"):Destroy()
  340.                                 end
  341.                                 if per:FindFirstChild("C4") then
  342.                                     per:FindFirstChild("C4"):Destroy()
  343.                                 end
  344.                                 if per:FindFirstChild("Left Arm") then
  345.                                     local c1 = Instance.new("Part",per)
  346.                                     c1.Size = Vector3.new(per["Left Arm"].Size.X*1.05,per["Left Arm"].Size.Y*.1,per["Left Arm"].Size.Z*1.05)
  347.                                     c1.name = "C1"
  348.                                     c1.BrickColor = BrickColor.new("Lime green")
  349.                                     c1.CanCollide = false
  350.                                     c1.CFrame = per["Left Arm"].CFrame * CFrame.new(0,per["Left Arm"].Size.Y*-.25,0)
  351.                                     weldparts(per["Left Arm"],c1)
  352.                                     c1.Material = Enum.Material.Neon
  353.                                 end
  354.  
  355.                                 if per:FindFirstChild("Right Arm") then
  356.                                     local c2 = Instance.new("Part",per)
  357.                                     c2.Size = Vector3.new(per["Right Arm"].Size.X*1.05,per["Right Arm"].Size.Y*.1,per["Right Arm"].Size.Z*1.05)
  358.                                     c2.name = "C2"
  359.                                     c2.BrickColor = BrickColor.new("Lime green")
  360.                                     c2.CanCollide = false
  361.                                     c2.CFrame = per["Right Arm"].CFrame * CFrame.new(0,per["Right Arm"].Size.Y*-.25,0)
  362.                                     weldparts(per["Right Arm"],c2)
  363.                                     c2.Material = Enum.Material.Neon
  364.                                 end
  365.                                
  366.                                 if per:FindFirstChild("Right Leg") then
  367.                                     local c3 = Instance.new("Part",per)
  368.                                     c3.Size = Vector3.new(per["Right Leg"].Size.X*1.05,per["Right Leg"].Size.Y*.1,per["Right Leg"].Size.Z*1.05)
  369.                                     c3.name = "C3"
  370.                                     c3.BrickColor = BrickColor.new("Lime green")
  371.                                     c3.CanCollide = false
  372.                                     c3.CFrame = per["Right Leg"].CFrame * CFrame.new(0,per["Right Leg"].Size.Y*-.25,0)
  373.                                     weldparts(per["Right Leg"],c3)     
  374.                                     c3.Material = Enum.Material.Neon
  375.                                 end
  376.                                    
  377.                                 if per:FindFirstChild("Left Leg") then
  378.                                     local c4 = Instance.new("Part",per)
  379.                                     c4.Size = Vector3.new(per["Left Leg"].Size.X*1.05,per["Left Leg"].Size.Y*.1,per["Left Leg"].Size.Z*1.05)
  380.                                     c4.name = "C4"
  381.                                     c4.BrickColor = BrickColor.new("Lime green")
  382.                                     c4.CanCollide = false
  383.                                     c4.CFrame = per["Left Leg"].CFrame * CFrame.new(0,per["Left Leg"].Size.Y*-.25,0)
  384.                                     weldparts(per["Left Leg"],c4)
  385.                                     c4.Material = Enum.Material.Neon
  386.                                 end
  387.                                 if owner.Character.Head:FindFirstChild("BGLabel") then
  388.                                     owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = "Passive Control"
  389.                                     owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81)
  390.                                 end
  391.                             else
  392.                                 if per:FindFirstChild("C1") then
  393.                                     per:FindFirstChild("C1"):Destroy()
  394.                                 end
  395.                                 if per:FindFirstChild("C2") then
  396.                                     per:FindFirstChild("C2"):Destroy()
  397.                                 end
  398.                                 if per:FindFirstChild("C3") then
  399.                                     per:FindFirstChild("C3"):Destroy()
  400.                                 end
  401.                                 if per:FindFirstChild("C4") then
  402.                                     per:FindFirstChild("C4"):Destroy()
  403.                                 end
  404.                                 if per:FindFirstChild("LeftHand") then
  405.                                     local c1 = Instance.new("Part",per)
  406.                                     c1.Size = Vector3.new(per["LeftHand"].Size.X*1.05,per["LeftHand"].Size.Y*.1,per["LeftHand"].Size.Z*1.05)
  407.                                     c1.name = "C1"
  408.                                     c1.BrickColor = BrickColor.new("Lime green")
  409.                                     c1.CanCollide = false
  410.                                     c1.CFrame = per["LeftHand"].CFrame
  411.                                     weldparts(per["LeftHand"],c1)
  412.                                     c1.Material = Enum.Material.Neon
  413.                                 end
  414.  
  415.                                 if per:FindFirstChild("RightHand") then
  416.                                     local c2 = Instance.new("Part",per)
  417.                                     c2.Size = Vector3.new(per["RightHand"].Size.X*1.05,per["RightHand"].Size.Y*.1,per["RightHand"].Size.Z*1.05)
  418.                                     c2.name = "C2"
  419.                                     c2.BrickColor = BrickColor.new("Lime green")
  420.                                     c2.CanCollide = false
  421.                                     c2.CFrame = per["RightHand"].CFrame
  422.                                     weldparts(per["RightHand"],c2)
  423.                                     c2.Material = Enum.Material.Neon
  424.                                 end
  425.                                
  426.                                 if per:FindFirstChild("RightFoot") then
  427.                                     local c3 = Instance.new("Part",per)
  428.                                     c3.Size = Vector3.new(per["RightFoot"].Size.X*1.05,per["RightFoot"].Size.Y*.1,per["RightFoot"].Size.Z*1.05)
  429.                                     c3.name = "C3"
  430.                                     c3.BrickColor = BrickColor.new("Lime green")
  431.                                     c3.CanCollide = false
  432.                                     c3.CFrame = per["RightFoot"].CFrame
  433.                                     weldparts(per["RightFoot"],c3)
  434.                                     c3.Material = Enum.Material.Neon
  435.                                 end
  436.                                    
  437.                                 if per:FindFirstChild("LeftFoot") then
  438.                                     local c4 = Instance.new("Part",per)
  439.                                     c4.Size = Vector3.new(per["LeftFoot"].Size.X*1.05,per["LeftFoot"].Size.Y*.1,per["LeftFoot"].Size.Z*1.05)
  440.                                     c4.name = "C4"
  441.                                     c4.BrickColor = BrickColor.new("Lime green")
  442.                                     c4.CanCollide = false
  443.                                     c4.CFrame = per["LeftFoot"].CFrame
  444.                                     weldparts(per["LeftFoot"],c4)
  445.                                     c4.Material = Enum.Material.Neon
  446.                                 end
  447.                                 if owner.Character.Head:FindFirstChild("BGLabel") then
  448.                                     owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = "Passive Control"
  449.                                     owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81)
  450.                                 end
  451.                             end
  452.                         end
  453.  
  454.                         host = per.Name
  455.                         onPerson=true
  456.                     else
  457.                         print("Uh oh!")
  458.                     end
  459.                     ConRe = false          
  460.                 end
  461.             else
  462.                 if game:GetService("Players"):FindFirstChild(host) then
  463.                     local per = game:GetService("Players"):FindFirstChild(host).Character
  464.                     local cCc = char:GetChildren()
  465.                     char.Humanoid.JumpPower = 25
  466.                     char.Humanoid.Sit = false
  467.                     for _,v in pairs(cCc) do
  468.                         if v:IsA("MeshPart") or v:IsA("Part") then
  469.                             v.Massless = false
  470.                         end
  471.                     end
  472.                     char.Humanoid.PlatformStand = false
  473.                     if char.HumanoidRootPart:FindFirstChild("weld12pts") then
  474.                         char.HumanoidRootPart:FindFirstChild("weld12pts"):Destroy()
  475.                     end
  476.                     unwalk(host,false)
  477.  
  478.                     if per:FindFirstChild("C1") then
  479.                         per:FindFirstChild("C1"):Destroy()
  480.                     end
  481.                     if per:FindFirstChild("C2") then
  482.                         per:FindFirstChild("C2"):Destroy()
  483.                     end
  484.                     if per:FindFirstChild("C3") then
  485.                         per:FindFirstChild("C3"):Destroy()
  486.                     end
  487.                     if per:FindFirstChild("C4") then
  488.                         per:FindFirstChild("C4"):Destroy()
  489.                     end
  490.                     if owner.Character.Head:FindFirstChild("BGLabel") then
  491.                         owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = "No host"
  492.                         owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  493.                     end
  494.                 end
  495.  
  496.                 host = nil
  497.                 onPerson =false
  498.                 ConRe = false
  499.             end
  500.         elseif key=="r" then
  501.             if host~=nil then
  502.                 if mouse.Target~=nil then
  503.                     local per = game:GetService("Players"):FindFirstChild(host).Character
  504.                     if per:FindFirstChild("Humanoid") then
  505.                         per.Humanoid:MoveTo(mouse.Hit.Position)
  506.                     end
  507.                 end
  508.             end
  509.         elseif key=="f" then
  510.             if host~=nil then
  511.                 if ConRe == false then
  512.                     local per = game:GetService("Players"):FindFirstChild(host).Character
  513.                     if per:FindFirstChild("C1") then
  514.                         per:FindFirstChild("C1").BrickColor = BrickColor.new("Really red")
  515.                     end
  516.                     if per:FindFirstChild("C2") then
  517.                         per:FindFirstChild("C2").BrickColor = BrickColor.new("Really red")
  518.                     end
  519.                     if per:FindFirstChild("C3") then
  520.                         per:FindFirstChild("C3").BrickColor = BrickColor.new("Really red")
  521.                     end
  522.                     if per:FindFirstChild("C4") then
  523.                         per:FindFirstChild("C4").BrickColor = BrickColor.new("Really red")
  524.                     end
  525.                     unwalk(host,true)
  526.                     ConRe = true
  527.                     if owner.Character.Head:FindFirstChild("BGLabel") then
  528.                         owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = "Total Control"
  529.                         owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(255, 0, 0)
  530.                     end
  531.                 else
  532.                     local per = game:GetService("Players"):FindFirstChild(host).Character
  533.                     if per:FindFirstChild("C1") then
  534.                         per:FindFirstChild("C1").BrickColor = BrickColor.new("Lime green")
  535.                     end
  536.                     if per:FindFirstChild("C2") then
  537.                         per:FindFirstChild("C2").BrickColor = BrickColor.new("Lime green")
  538.                     end
  539.                     if per:FindFirstChild("C3") then
  540.                         per:FindFirstChild("C3").BrickColor = BrickColor.new("Lime green")
  541.                     end
  542.                     if per:FindFirstChild("C4") then
  543.                         per:FindFirstChild("C4").BrickColor = BrickColor.new("Lime green")
  544.                     end
  545.                     unwalk(host,false)
  546.                     ConRe  = false
  547.                     if owner.Character.Head:FindFirstChild("BGLabel") then
  548.                         owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = "Passive Control"
  549.                         owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81)
  550.                     end
  551.                 end
  552.             end
  553.         end
  554.     end)
  555.     char.Humanoid.Seated:Connect(function(bool)
  556.         if bool==true then
  557.             torso.Orientation = Vector3.new(0,0,0)
  558.             torso["Right Shoulder"].C1 = CFrame.new(0.25,.25,-.25) * CFrame.fromOrientation(0,math.rad(90),0)
  559.             torso["Left Shoulder"].C1 = CFrame.new(-0.25,.25,-.25)* CFrame.fromOrientation(0,math.rad(-90),0)
  560.             torso["Left Hip"].C1 = CFrame.new(-0.75,.5,.5) * CFrame.fromOrientation(0,math.rad(-90),0)
  561.             torso["Right Hip"].C1 = CFrame.new(0.75,.5,.5) * CFrame.fromOrientation(0,math.rad(90),0)
  562.         else
  563.             if onPerson==true then
  564.                 char.Humanoid.Sit = true
  565.                 local cphost = game:GetService("Players"):FindFirstChild(host).Character
  566.                 cphost:FindFirstChildWhichIsA("Humanoid").Jump = true
  567.             else
  568.                 torso.Orientation = Vector3.new(0,0,0)
  569.                 torso["Right Shoulder"].C1 = CFrame.new(0.25,.5,0) * CFrame.fromOrientation(0,math.rad(90),0)
  570.                 torso["Left Shoulder"].C1 = CFrame.new(-0.25,.5,0)* CFrame.fromOrientation(0,math.rad(-90),0)
  571.                 torso["Left Hip"].C1 = CFrame.new(-0.75,0,0) * CFrame.fromOrientation(0,math.rad(-90),0)
  572.                 torso["Right Hip"].C1 = CFrame.new(0.75,0,0) * CFrame.fromOrientation(0,math.rad(90),0)
  573.             end
  574.         end
  575.        
  576.     end)
  577.     char.Humanoid.Died:Connect(function()
  578.         if onPerson==true then
  579.             if game.PlaceId==843495510 or owner.UserId==710232008 then
  580.                 local hostc = game.Workspace:FindFirstChild(host)
  581.                 if hostc:FindFirstChild("Humanoid") then
  582.                     hostc:FindFirstChild("Humanoid").Health = 0
  583.                 elseif hostc:FindFirstChild("Head") then
  584.                     hostc:FindFirstChild("Head"):Destroy()
  585.                 elseif hostc:FindFirstChild("UpperTorso") then
  586.                     hostc:FindFirstChild("UpperTorso"):Destroy()
  587.                 elseif hostc:FindFirstChild("Torso") then
  588.                     hostc:FindFirstChild("Torso"):Destroy()
  589.                 end
  590.             end
  591.             unwalk(host,false)
  592.             ConRe = false
  593.         end
  594.     end)
  595.     if host~=nil then
  596.         local cphost = game:GetService("Players"):FindFirstChild(host).Character
  597.         char.Humanoid.HealthChanged:Connect(function(hel)
  598.             chost.Humanoid.Health = (char.Humanoid.Health*cphost.Humanoid.MaxHealth/char.Humanoid.MaxHealth)
  599.             print(char.Humanoid.Health.." / "..char.Humanoid.MaxHealth)
  600.             print(cphost.Humanoid.Health.." / "..cphost.Humanoid.MaxHealth)
  601.         end)
  602.         cphost.Humanoid.Died:Connect(function()
  603.             local weldp = char.HumanoidRootPart:FindFirstChildWhichIsA("WeldConstraint")
  604.             if weldp then
  605.                 welp:Destroy()
  606.             end
  607.         end)
  608.     end
  609. end
  610. end
Add Comment
Please, Sign In to add comment