SHOW:
|
|
- or go back to the newest paste.
1 | - | --minified cuz yall re-edited it without placing my credit soooooo |
1 | + | if game.PlaceId == 843468296 or game.PlaceId == 843495510 or game.PlaceId == 897312463 then |
2 | -- Instructions: | |
3 | - | if game.PlaceId==843468296 or game.PlaceId==843495510 or game.PlaceId==897312463 then if game:GetService("RunService"):IsClient()then error("Script must be server-side in order to work; use h/ and not hl/")end;local a,b,c,d,e=owner;do print("FE Compatibility code by Mokiros | Translated to FE by iPxter")script.Parent=a.Character;local f=Instance.new("RemoteEvent")f.Name="UserInput_Event"local function g()local h={_fakeEvent=true,Connect=function(self,i)self.Function=i end}h.connect=h.Connect;return h end;local j={Target=nil,Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g()}local k={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,l,m,n,...)CAS.Actions[l]=m and{Name=l,Function=m,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function o(self,p,...)local h=j[p]if h and h._fakeEvent and h.Function then h.Function(...)end end;j.TrigEvent=o;k.TrigEvent=o;f.OnServerEvent:Connect(function(q,r)if q~=a then return end;if r.isMouse then j.Target=r.Target;j.Hit=r.Hit else local s=r.UserInputState==Enum.UserInputState.Begin;if r.UserInputType==Enum.UserInputType.MouseButton1 then return j:TrigEvent(s and"Button1Down"or"Button1Up")end;for t,h in pairs(CAS.Actions)do for t,u in pairs(h.Keys)do if u==r.KeyCode then h.Function(h.Name,r.UserInputState,r)end end end;j:TrigEvent(s and"KeyDown"or"KeyUp",r.KeyCode.Name:lower())k:TrigEvent(s and"InputBegan"or"InputEnded",r,false)end end)f.Parent=NLS([==[ |
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 | - | end]==],a.Character)b,c,d,e=j,j,k,CAS end;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 v=owner.Character;local w=false;local x=nil;local y=false;function weldparts(z,A)local B=Instance.new("WeldConstraint",z)B.Name="weld12pts"B.Part0=z;B.Part1=A end;function unwalk(C,D)local E=game:GetService("Players"):FindFirstChild(C)if E then if D==true then E.DevComputerMovementMode=Enum.DevComputerMovementMode.Scriptable;E.DevTouchMovementMode=Enum.DevTouchMovementMode.Scriptable else E.DevComputerMovementMode=Enum.DevComputerMovementMode.UserChoice;E.DevTouchMovementMode=Enum.DevTouchMovementMode.UserChoice end end end;if v then wait(.1)local F=v:GetChildren()if v["Left Arm"].Size.Y==2 then for G,H in pairs(F)do if H:IsA("Part")and H.Name~="Head"then H.Size=Vector3.new(H.Size.X*.5,H.Size.Y*.5,H.Size.Z*.5)end end end;local I=v:FindFirstChild("Torso")if v["Left Arm"].Size.Y==1 then if I then I.Orientation=Vector3.new(0,0,0)I["Right Shoulder"].C1=CFrame.new(0.25,.5,0)*CFrame.fromOrientation(0,math.rad(90),0)I["Left Shoulder"].C1=CFrame.new(-0.25,.5,0)*CFrame.fromOrientation(0,math.rad(-90),0)I["Left Hip"].C1=CFrame.new(-0.75,0,0)*CFrame.fromOrientation(0,math.rad(-90),0)I["Right Hip"].C1=CFrame.new(0.75,0,0)*CFrame.fromOrientation(0,math.rad(90),0)I["Neck"].C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(I.Orientation.X+90),math.rad(I.Orientation.y+180),math.rad(I.Orientation.Z))end end;v:FindFirstChildWhichIsA('Humanoid',true).WalkSpeed=8;v:FindFirstChildWhichIsA('Humanoid',true).JumpPower=25;local J=Instance.new("BillboardGui",owner.Character.Head)J.Name="BGLabel"J.ExtentsOffsetWorldSpace=Vector3.new(0,5,0)J.MaxDistance=100;J.Size=UDim2.new(0,300,0,150)local K=Instance.new("TextLabel",J)K.Name="TextLabel"K.Size=UDim2.new(0,300,0,150)K.TextScaled=true;K.BackgroundTransparency=1;K.TextStrokeTransparency=0;K.TextStrokeColor3=Color3.fromRGB(255,255,255)K.Font=Enum.Font.Code;K.Text="No host"c.KeyDown:Connect(function(L)if L=="e"then if w==false then local M=c.Target;if M==nil then elseif M.Parent:IsA("Accessory")then local N=M.Parent.Parent;if N:FindFirstChild("Head")and v:FindFirstChild("HumanoidRootPart")and v:FindFirstChildWhichIsA("Humanoid")and game:GetService("Players"):FindFirstChild(N.Name)then v.HumanoidRootPart.CFrame=N.Head.CFrame*CFrame.new(0,N.Head.Size.Y*.5+.75,.5)weldparts(v.HumanoidRootPart,N.Head)v:FindFirstChildWhichIsA('Humanoid',true).JumpPower=0;v:FindFirstChildWhichIsA('Humanoid',true).Sit=true;local O=v:GetChildren()for t,H in pairs(O)do if H:IsA("MeshPart")or H:IsA("Part")then H.Massless=true end end;if v:FindFirstChild'Fly'then v:FindFirstChild'Fly':Destroy()end;v.ChildAdded:Connect(function(P)if P.Name=='Fly'then P:Destroy()end end)local Q=N:FindFirstChildWhichIsA("Humanoid")if N:FindFirstChildWhichIsA("Humanoid")then if Q.RigType==Enum.HumanoidRigType.R6 then if N:FindFirstChild("C1")then N:FindFirstChild("C1"):Destroy()end;if N:FindFirstChild("C2")then N:FindFirstChild("C2"):Destroy()end;if N:FindFirstChild("C3")then N:FindFirstChild("C3"):Destroy()end;if N:FindFirstChild("C4")then N:FindFirstChild("C4"):Destroy()end;if N:FindFirstChild("Left Arm")then local R=Instance.new("Part",N)R.Size=Vector3.new(N["Left Arm"].Size.X*1.05,N["Left Arm"].Size.Y*.1,N["Left Arm"].Size.Z*1.05)R.name="C1"R.BrickColor=BrickColor.new("Lime green")R.CanCollide=false;R.CFrame=N["Left Arm"].CFrame*CFrame.new(0,N["Left Arm"].Size.Y*-.25,0)weldparts(N["Left Arm"],R)R.Material=Enum.Material.Neon end;if N:FindFirstChild("Right Arm")then local S=Instance.new("Part",N)S.Size=Vector3.new(N["Right Arm"].Size.X*1.05,N["Right Arm"].Size.Y*.1,N["Right Arm"].Size.Z*1.05)S.name="C2"S.BrickColor=BrickColor.new("Lime green")S.CanCollide=false;S.CFrame=N["Right Arm"].CFrame*CFrame.new(0,N["Right Arm"].Size.Y*-.25,0)weldparts(N["Right Arm"],S)S.Material=Enum.Material.Neon end;if N:FindFirstChild("Right Leg")then local T=Instance.new("Part",N)T.Size=Vector3.new(N["Right Leg"].Size.X*1.05,N["Right Leg"].Size.Y*.1,N["Right Leg"].Size.Z*1.05)T.name="C3"T.BrickColor=BrickColor.new("Lime green")T.CanCollide=false;T.CFrame=N["Right Leg"].CFrame*CFrame.new(0,N["Right Leg"].Size.Y*-.25,0)weldparts(N["Right Leg"],T)T.Material=Enum.Material.Neon end;if N:FindFirstChild("Left Leg")then local U=Instance.new("Part",N)U.Size=Vector3.new(N["Left Leg"].Size.X*1.05,N["Left Leg"].Size.Y*.1,N["Left Leg"].Size.Z*1.05)U.name="C4"U.BrickColor=BrickColor.new("Lime green")U.CanCollide=false;U.CFrame=N["Left Leg"].CFrame*CFrame.new(0,N["Left Leg"].Size.Y*-.25,0)weldparts(N["Left Leg"],U)U.Material=Enum.Material.Neon end;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 else if N:FindFirstChild("C1")then N:FindFirstChild("C1"):Destroy()end;if N:FindFirstChild("C2")then N:FindFirstChild("C2"):Destroy()end;if N:FindFirstChild("C3")then N:FindFirstChild("C3"):Destroy()end;if N:FindFirstChild("C4")then N:FindFirstChild("C4"):Destroy()end;if N:FindFirstChild("LeftHand")then local R=Instance.new("Part",N)R.Size=Vector3.new(N["LeftHand"].Size.X*1.05,N["LeftHand"].Size.Y*.1,N["LeftHand"].Size.Z*1.05)R.name="C1"R.BrickColor=BrickColor.new("Lime green")R.CanCollide=false;R.CFrame=N["LeftHand"].CFrame;weldparts(N["LeftHand"],R)R.Material=Enum.Material.Neon end;if N:FindFirstChild("RightHand")then local S=Instance.new("Part",N)S.Size=Vector3.new(N["RightHand"].Size.X*1.05,N["RightHand"].Size.Y*.1,N["RightHand"].Size.Z*1.05)S.name="C2"S.BrickColor=BrickColor.new("Lime green")S.CanCollide=false;S.CFrame=N["RightHand"].CFrame;weldparts(N["RightHand"],S)S.Material=Enum.Material.Neon end;if N:FindFirstChild("RightFoot")then local T=Instance.new("Part",N)T.Size=Vector3.new(N["RightFoot"].Size.X*1.05,N["RightFoot"].Size.Y*.1,N["RightFoot"].Size.Z*1.05)T.name="C3"T.BrickColor=BrickColor.new("Lime green")T.CanCollide=false;T.CFrame=N["RightFoot"].CFrame;weldparts(N["RightFoot"],T)T.Material=Enum.Material.Neon end;if N:FindFirstChild("LeftFoot")then local U=Instance.new("Part",N)U.Size=Vector3.new(N["LeftFoot"].Size.X*1.05,N["LeftFoot"].Size.Y*.1,N["LeftFoot"].Size.Z*1.05)U.name="C4"U.BrickColor=BrickColor.new("Lime green")U.CanCollide=false;U.CFrame=N["LeftFoot"].CFrame;weldparts(N["LeftFoot"],U)U.Material=Enum.Material.Neon end;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;x=N.Name;w=true else print("Uh oh!")end;y=false elseif M.Parent:FindFirstChildWhichIsA("Humanoid")then local N=M.Parent;if N:FindFirstChild("Head")and v:FindFirstChild("HumanoidRootPart")and v:FindFirstChildWhichIsA("Humanoid")and game:GetService("Players"):FindFirstChild(N.Name)then v.HumanoidRootPart.CFrame=N.Head.CFrame*CFrame.new(0,N.Head.Size.Y*.5+.75,.5)weldparts(v.HumanoidRootPart,N.Head)v:FindFirstChildWhichIsA('Humanoid',true).JumpPower=0;v:FindFirstChildWhichIsA('Humanoid',true).Sit=true;local O=v:GetChildren()for t,H in pairs(O)do if H:IsA("MeshPart")or H:IsA("Part")then H.Massless=true end end;local Q=N:FindFirstChildWhichIsA("Humanoid")if N:FindFirstChildWhichIsA("Humanoid")then if Q.RigType==Enum.HumanoidRigType.R6 then if N:FindFirstChild("C1")then N:FindFirstChild("C1"):Destroy()end;if N:FindFirstChild("C2")then N:FindFirstChild("C2"):Destroy()end;if N:FindFirstChild("C3")then N:FindFirstChild("C3"):Destroy()end;if N:FindFirstChild("C4")then N:FindFirstChild("C4"):Destroy()end;if N:FindFirstChild("Left Arm")then local R=Instance.new("Part",N)R.Size=Vector3.new(N["Left Arm"].Size.X*1.05,N["Left Arm"].Size.Y*.1,N["Left Arm"].Size.Z*1.05)R.name="C1"R.BrickColor=BrickColor.new("Lime green")R.CanCollide=false;R.CFrame=N["Left Arm"].CFrame*CFrame.new(0,N["Left Arm"].Size.Y*-.25,0)weldparts(N["Left Arm"],R)R.Material=Enum.Material.Neon end;if N:FindFirstChild("Right Arm")then local S=Instance.new("Part",N)S.Size=Vector3.new(N["Right Arm"].Size.X*1.05,N["Right Arm"].Size.Y*.1,N["Right Arm"].Size.Z*1.05)S.name="C2"S.BrickColor=BrickColor.new("Lime green")S.CanCollide=false;S.CFrame=N["Right Arm"].CFrame*CFrame.new(0,N["Right Arm"].Size.Y*-.25,0)weldparts(N["Right Arm"],S)S.Material=Enum.Material.Neon end;if N:FindFirstChild("Right Leg")then local T=Instance.new("Part",N)T.Size=Vector3.new(N["Right Leg"].Size.X*1.05,N["Right Leg"].Size.Y*.1,N["Right Leg"].Size.Z*1.05)T.name="C3"T.BrickColor=BrickColor.new("Lime green")T.CanCollide=false;T.CFrame=N["Right Leg"].CFrame*CFrame.new(0,N["Right Leg"].Size.Y*-.25,0)weldparts(N["Right Leg"],T)T.Material=Enum.Material.Neon end;if N:FindFirstChild("Left Leg")then local U=Instance.new("Part",N)U.Size=Vector3.new(N["Left Leg"].Size.X*1.05,N["Left Leg"].Size.Y*.1,N["Left Leg"].Size.Z*1.05)U.name="C4"U.BrickColor=BrickColor.new("Lime green")U.CanCollide=false;U.CFrame=N["Left Leg"].CFrame*CFrame.new(0,N["Left Leg"].Size.Y*-.25,0)weldparts(N["Left Leg"],U)U.Material=Enum.Material.Neon end;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 else if N:FindFirstChild("C1")then N:FindFirstChild("C1"):Destroy()end;if N:FindFirstChild("C2")then N:FindFirstChild("C2"):Destroy()end;if N:FindFirstChild("C3")then N:FindFirstChild("C3"):Destroy()end;if N:FindFirstChild("C4")then N:FindFirstChild("C4"):Destroy()end;if N:FindFirstChild("LeftHand")then local R=Instance.new("Part",N)R.Size=Vector3.new(N["LeftHand"].Size.X*1.05,N["LeftHand"].Size.Y*.1,N["LeftHand"].Size.Z*1.05)R.name="C1"R.BrickColor=BrickColor.new("Lime green")R.CanCollide=false;R.CFrame=N["LeftHand"].CFrame;weldparts(N["LeftHand"],R)R.Material=Enum.Material.Neon end;if N:FindFirstChild("RightHand")then local S=Instance.new("Part",N)S.Size=Vector3.new(N["RightHand"].Size.X*1.05,N["RightHand"].Size.Y*.1,N["RightHand"].Size.Z*1.05)S.name="C2"S.BrickColor=BrickColor.new("Lime green")S.CanCollide=false;S.CFrame=N["RightHand"].CFrame;weldparts(N["RightHand"],S)S.Material=Enum.Material.Neon end;if N:FindFirstChild("RightFoot")then local T=Instance.new("Part",N)T.Size=Vector3.new(N["RightFoot"].Size.X*1.05,N["RightFoot"].Size.Y*.1,N["RightFoot"].Size.Z*1.05)T.name="C3"T.BrickColor=BrickColor.new("Lime green")T.CanCollide=false;T.CFrame=N["RightFoot"].CFrame;weldparts(N["RightFoot"],T)T.Material=Enum.Material.Neon end;if N:FindFirstChild("LeftFoot")then local U=Instance.new("Part",N)U.Size=Vector3.new(N["LeftFoot"].Size.X*1.05,N["LeftFoot"].Size.Y*.1,N["LeftFoot"].Size.Z*1.05)U.name="C4"U.BrickColor=BrickColor.new("Lime green")U.CanCollide=false;U.CFrame=N["LeftFoot"].CFrame;weldparts(N["LeftFoot"],U)U.Material=Enum.Material.Neon end;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;x=N.Name;w=true else print("Uh oh!")end;y=false end else if game:GetService("Players"):FindFirstChild(x)then local N=game:GetService("Players"):FindFirstChild(x).Character;local O=v:GetChildren()v:FindFirstChildWhichIsA('Humanoid',true).JumpPower=25;v:FindFirstChildWhichIsA('Humanoid',true).Sit=false;for t,H in pairs(O)do if H:IsA("MeshPart")or H:IsA("Part")then H.Massless=false end end;v:FindFirstChildWhichIsA('Humanoid',true).PlatformStand=false;if v.HumanoidRootPart:FindFirstChild("weld12pts")then v.HumanoidRootPart:FindFirstChild("weld12pts"):Destroy()end;unwalk(x,false)if N:FindFirstChild("C1")then N:FindFirstChild("C1"):Destroy()end;if N:FindFirstChild("C2")then N:FindFirstChild("C2"):Destroy()end;if N:FindFirstChild("C3")then N:FindFirstChild("C3"):Destroy()end;if N:FindFirstChild("C4")then N:FindFirstChild("C4"):Destroy()end;if owner.Character.Head:FindFirstChild("BGLabel")then owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text="No host"owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3=Color3.fromRGB(255,255,255)end end;x=nil;w=false;y=false end elseif L=="r"then if x~=nil then if c.Target~=nil then local N=game:GetService("Players"):FindFirstChild(x).Character;if N:FindFirstChild("Humanoid")then N:FindFirstChildWhichIsA('Humanoid',true):MoveTo(c.Hit.Position)end end end elseif L=="f"then if x~=nil then if y==false then local N=game:GetService("Players"):FindFirstChild(x).Character;if N:FindFirstChild("C1")then N:FindFirstChild("C1").BrickColor=BrickColor.new("Really red")end;if N:FindFirstChild("C2")then N:FindFirstChild("C2").BrickColor=BrickColor.new("Really red")end;if N:FindFirstChild("C3")then N:FindFirstChild("C3").BrickColor=BrickColor.new("Really red")end;if N:FindFirstChild("C4")then N:FindFirstChild("C4").BrickColor=BrickColor.new("Really red")end;unwalk(x,true)y=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 N=game:GetService("Players"):FindFirstChild(x).Character;if N:FindFirstChild("C1")then N:FindFirstChild("C1").BrickColor=BrickColor.new("Lime green")end;if N:FindFirstChild("C2")then N:FindFirstChild("C2").BrickColor=BrickColor.new("Lime green")end;if N:FindFirstChild("C3")then N:FindFirstChild("C3").BrickColor=BrickColor.new("Lime green")end;if N:FindFirstChild("C4")then N:FindFirstChild("C4").BrickColor=BrickColor.new("Lime green")end;unwalk(x,false)y=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)v:FindFirstChildWhichIsA('Humanoid',true).Seated:Connect(function(V)if V==true then I.Orientation=Vector3.new(0,0,0)I["Right Shoulder"].C1=CFrame.new(0.25,.25,-.25)*CFrame.fromOrientation(0,math.rad(90),0)I["Left Shoulder"].C1=CFrame.new(-0.25,.25,-.25)*CFrame.fromOrientation(0,math.rad(-90),0)I["Left Hip"].C1=CFrame.new(-0.75,.5,.5)*CFrame.fromOrientation(0,math.rad(-90),0)I["Right Hip"].C1=CFrame.new(0.75,.5,.5)*CFrame.fromOrientation(0,math.rad(90),0)else if w==true then v:FindFirstChildWhichIsA('Humanoid',true).Sit=true;local W=game:GetService("Players"):FindFirstChild(x).Character;W:FindFirstChildWhichIsA("Humanoid").Jump=true else I.Orientation=Vector3.new(0,0,0)I["Right Shoulder"].C1=CFrame.new(0.25,.5,0)*CFrame.fromOrientation(0,math.rad(90),0)I["Left Shoulder"].C1=CFrame.new(-0.25,.5,0)*CFrame.fromOrientation(0,math.rad(-90),0)I["Left Hip"].C1=CFrame.new(-0.75,0,0)*CFrame.fromOrientation(0,math.rad(-90),0)I["Right Hip"].C1=CFrame.new(0.75,0,0)*CFrame.fromOrientation(0,math.rad(90),0)end end end)v:FindFirstChildWhichIsA('Humanoid',true).Died:Connect(function()if w==true then if game.PlaceId==843495510 or owner.UserId==710232008 then local X=game.Workspace:FindFirstChild(x)if X:FindFirstChild("Humanoid")then X:FindFirstChild("Humanoid").Health=0 elseif X:FindFirstChild("Head")then X:FindFirstChild("Head"):Destroy()elseif X:FindFirstChild("UpperTorso")then X:FindFirstChild("UpperTorso"):Destroy()elseif X:FindFirstChild("Torso")then X:FindFirstChild("Torso"):Destroy()end end;unwalk(x,false)y=false end end)if x~=nil then local W=game:GetService("Players"):FindFirstChild(x).Character;v:FindFirstChildWhichIsA('Humanoid',true).HealthChanged:Connect(function(Y)chost:FindFirstChildWhichIsA('Humanoid',true).Health=v:FindFirstChildWhichIsA('Humanoid',true).Health*W:FindFirstChildWhichIsA('Humanoid',true).MaxHealth/v:FindFirstChildWhichIsA('Humanoid',true).MaxHealth;print(v:FindFirstChildWhichIsA('Humanoid',true).Health.." / "..v:FindFirstChildWhichIsA('Humanoid',true).MaxHealth)print(W:FindFirstChildWhichIsA('Humanoid',true).Health.." / "..W:FindFirstChildWhichIsA('Humanoid',true).MaxHealth)end)W:FindFirstChildWhichIsA('Humanoid',true).Died:Connect(function()local Z=v.HumanoidRootPart:FindFirstChildWhichIsA("WeldConstraint")if Z then welp:Destroy()end end)end end end |
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:FindFirstChildWhichIsA('Humanoid',true).WalkSpeed = 8 | |
149 | char:FindFirstChildWhichIsA('Humanoid',true).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 = " " | |
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:FindFirstChildWhichIsA('Humanoid',true).JumpPower = 0 | |
176 | char:FindFirstChildWhichIsA('Humanoid',true).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 | if char:FindFirstChild'Fly' then | |
185 | char:FindFirstChild'Fly':Destroy() | |
186 | end | |
187 | char.ChildAdded:Connect(function(ch) | |
188 | if ch.Name=='Fly' then | |
189 | ch:Destroy() | |
190 | end | |
191 | end) | |
192 | local hu = per:FindFirstChildWhichIsA("Humanoid") | |
193 | if per:FindFirstChildWhichIsA("Humanoid") then | |
194 | if hu.RigType==Enum.HumanoidRigType.R6 then | |
195 | if per:FindFirstChild("C1") then | |
196 | per:FindFirstChild("C1"):Destroy() | |
197 | end | |
198 | if per:FindFirstChild("C2") then | |
199 | per:FindFirstChild("C2"):Destroy() | |
200 | end | |
201 | if per:FindFirstChild("C3") then | |
202 | per:FindFirstChild("C3"):Destroy() | |
203 | end | |
204 | if per:FindFirstChild("C4") then | |
205 | per:FindFirstChild("C4"):Destroy() | |
206 | end | |
207 | if per:FindFirstChild("Left Arm") then | |
208 | local c1 = Instance.new("Part",per) | |
209 | c1.Size = Vector3.new(per["Left Arm"].Size.X*1.05,per["Left Arm"].Size.Y*.1,per["Left Arm"].Size.Z*1.05) | |
210 | c1.name = "C1" | |
211 | c1.BrickColor = BrickColor.new("Lime green") | |
212 | c1.CanCollide = false | |
213 | c1.CFrame = per["Left Arm"].CFrame * CFrame.new(0,per["Left Arm"].Size.Y*-.25,0) | |
214 | weldparts(per["Left Arm"],c1) | |
215 | c1.Material = Enum.Material.Neon | |
216 | end | |
217 | ||
218 | if per:FindFirstChild("Right Arm") then | |
219 | local c2 = Instance.new("Part",per) | |
220 | c2.Size = Vector3.new(per["Right Arm"].Size.X*1.05,per["Right Arm"].Size.Y*.1,per["Right Arm"].Size.Z*1.05) | |
221 | c2.name = "C2" | |
222 | c2.BrickColor = BrickColor.new("Lime green") | |
223 | c2.CanCollide = false | |
224 | c2.CFrame = per["Right Arm"].CFrame * CFrame.new(0,per["Right Arm"].Size.Y*-.25,0) | |
225 | weldparts(per["Right Arm"],c2) | |
226 | c2.Material = Enum.Material.Neon | |
227 | end | |
228 | ||
229 | if per:FindFirstChild("Right Leg") then | |
230 | local c3 = Instance.new("Part",per) | |
231 | c3.Size = Vector3.new(per["Right Leg"].Size.X*1.05,per["Right Leg"].Size.Y*.1,per["Right Leg"].Size.Z*1.05) | |
232 | c3.name = "C3" | |
233 | c3.BrickColor = BrickColor.new("Lime green") | |
234 | c3.CanCollide = false | |
235 | c3.CFrame = per["Right Leg"].CFrame * CFrame.new(0,per["Right Leg"].Size.Y*-.25,0) | |
236 | weldparts(per["Right Leg"],c3) | |
237 | c3.Material = Enum.Material.Neon | |
238 | end | |
239 | ||
240 | if per:FindFirstChild("Left Leg") then | |
241 | local c4 = Instance.new("Part",per) | |
242 | c4.Size = Vector3.new(per["Left Leg"].Size.X*1.05,per["Left Leg"].Size.Y*.1,per["Left Leg"].Size.Z*1.05) | |
243 | c4.name = "C4" | |
244 | c4.BrickColor = BrickColor.new("Lime green") | |
245 | c4.CanCollide = false | |
246 | c4.CFrame = per["Left Leg"].CFrame * CFrame.new(0,per["Left Leg"].Size.Y*-.25,0) | |
247 | weldparts(per["Left Leg"],c4) | |
248 | c4.Material = Enum.Material.Neon | |
249 | end | |
250 | if owner.Character.Head:FindFirstChild("BGLabel") then | |
251 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = " " | |
252 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81) | |
253 | end | |
254 | else | |
255 | if per:FindFirstChild("C1") then | |
256 | per:FindFirstChild("C1"):Destroy() | |
257 | end | |
258 | if per:FindFirstChild("C2") then | |
259 | per:FindFirstChild("C2"):Destroy() | |
260 | end | |
261 | if per:FindFirstChild("C3") then | |
262 | per:FindFirstChild("C3"):Destroy() | |
263 | end | |
264 | if per:FindFirstChild("C4") then | |
265 | per:FindFirstChild("C4"):Destroy() | |
266 | end | |
267 | if per:FindFirstChild("LeftHand") then | |
268 | local c1 = Instance.new("Part",per) | |
269 | c1.Size = Vector3.new(per["LeftHand"].Size.X*1.05,per["LeftHand"].Size.Y*.1,per["LeftHand"].Size.Z*1.05) | |
270 | c1.name = "C1" | |
271 | c1.BrickColor = BrickColor.new("Lime green") | |
272 | c1.CanCollide = false | |
273 | c1.CFrame = per["LeftHand"].CFrame | |
274 | weldparts(per["LeftHand"],c1) | |
275 | c1.Material = Enum.Material.Neon | |
276 | end | |
277 | ||
278 | if per:FindFirstChild("RightHand") then | |
279 | local c2 = Instance.new("Part",per) | |
280 | c2.Size = Vector3.new(per["RightHand"].Size.X*1.05,per["RightHand"].Size.Y*.1,per["RightHand"].Size.Z*1.05) | |
281 | c2.name = "C2" | |
282 | c2.BrickColor = BrickColor.new("Lime green") | |
283 | c2.CanCollide = false | |
284 | c2.CFrame = per["RightHand"].CFrame | |
285 | weldparts(per["RightHand"],c2) | |
286 | c2.Material = Enum.Material.Neon | |
287 | end | |
288 | ||
289 | if per:FindFirstChild("RightFoot") then | |
290 | local c3 = Instance.new("Part",per) | |
291 | c3.Size = Vector3.new(per["RightFoot"].Size.X*1.05,per["RightFoot"].Size.Y*.1,per["RightFoot"].Size.Z*1.05) | |
292 | c3.name = "C3" | |
293 | c3.BrickColor = BrickColor.new("Lime green") | |
294 | c3.CanCollide = false | |
295 | c3.CFrame = per["RightFoot"].CFrame | |
296 | weldparts(per["RightFoot"],c3) | |
297 | c3.Material = Enum.Material.Neon | |
298 | end | |
299 | ||
300 | if per:FindFirstChild("LeftFoot") then | |
301 | local c4 = Instance.new("Part",per) | |
302 | c4.Size = Vector3.new(per["LeftFoot"].Size.X*1.05,per["LeftFoot"].Size.Y*.1,per["LeftFoot"].Size.Z*1.05) | |
303 | c4.name = "C4" | |
304 | c4.BrickColor = BrickColor.new("Lime green") | |
305 | c4.CanCollide = false | |
306 | c4.CFrame = per["LeftFoot"].CFrame | |
307 | weldparts(per["LeftFoot"],c4) | |
308 | c4.Material = Enum.Material.Neon | |
309 | end | |
310 | if owner.Character.Head:FindFirstChild("BGLabel") then | |
311 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = " " | |
312 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81) | |
313 | end | |
314 | end | |
315 | end | |
316 | ||
317 | host = per.Name | |
318 | onPerson=true | |
319 | else | |
320 | print("Uh oh!") | |
321 | end | |
322 | ConRe = false | |
323 | elseif mt.Parent:FindFirstChildWhichIsA("Humanoid") then | |
324 | local per = mt.Parent | |
325 | if per:FindFirstChild("Head") and char:FindFirstChild("HumanoidRootPart") and char:FindFirstChildWhichIsA("Humanoid") and game:GetService("Players"):FindFirstChild(per.Name) then | |
326 | char.HumanoidRootPart.CFrame=per.Head.CFrame * CFrame.new(0,(per.Head.Size.Y*.5) + .75,.5) | |
327 | weldparts(char.HumanoidRootPart,per.Head) | |
328 | char:FindFirstChildWhichIsA('Humanoid',true).JumpPower = 0 | |
329 | char:FindFirstChildWhichIsA('Humanoid',true).Sit = true | |
330 | local cCc = char:GetChildren() | |
331 | for _,v in pairs(cCc) do | |
332 | if v:IsA("MeshPart") or v:IsA("Part") then | |
333 | v.Massless = true | |
334 | end | |
335 | end | |
336 | ||
337 | local hu = per:FindFirstChildWhichIsA("Humanoid") | |
338 | if per:FindFirstChildWhichIsA("Humanoid") then | |
339 | if hu.RigType==Enum.HumanoidRigType.R6 then | |
340 | if per:FindFirstChild("C1") then | |
341 | per:FindFirstChild("C1"):Destroy() | |
342 | end | |
343 | if per:FindFirstChild("C2") then | |
344 | per:FindFirstChild("C2"):Destroy() | |
345 | end | |
346 | if per:FindFirstChild("C3") then | |
347 | per:FindFirstChild("C3"):Destroy() | |
348 | end | |
349 | if per:FindFirstChild("C4") then | |
350 | per:FindFirstChild("C4"):Destroy() | |
351 | end | |
352 | if per:FindFirstChild("Left Arm") then | |
353 | local c1 = Instance.new("Part",per) | |
354 | c1.Size = Vector3.new(per["Left Arm"].Size.X*1.05,per["Left Arm"].Size.Y*.1,per["Left Arm"].Size.Z*1.05) | |
355 | c1.name = "C1" | |
356 | c1.BrickColor = BrickColor.new("Lime green") | |
357 | c1.CanCollide = false | |
358 | c1.CFrame = per["Left Arm"].CFrame * CFrame.new(0,per["Left Arm"].Size.Y*-.25,0) | |
359 | weldparts(per["Left Arm"],c1) | |
360 | c1.Material = Enum.Material.Neon | |
361 | end | |
362 | ||
363 | if per:FindFirstChild("Right Arm") then | |
364 | local c2 = Instance.new("Part",per) | |
365 | c2.Size = Vector3.new(per["Right Arm"].Size.X*1.05,per["Right Arm"].Size.Y*.1,per["Right Arm"].Size.Z*1.05) | |
366 | c2.name = "C2" | |
367 | c2.BrickColor = BrickColor.new("Lime green") | |
368 | c2.CanCollide = false | |
369 | c2.CFrame = per["Right Arm"].CFrame * CFrame.new(0,per["Right Arm"].Size.Y*-.25,0) | |
370 | weldparts(per["Right Arm"],c2) | |
371 | c2.Material = Enum.Material.Neon | |
372 | end | |
373 | ||
374 | if per:FindFirstChild("Right Leg") then | |
375 | local c3 = Instance.new("Part",per) | |
376 | c3.Size = Vector3.new(per["Right Leg"].Size.X*1.05,per["Right Leg"].Size.Y*.1,per["Right Leg"].Size.Z*1.05) | |
377 | c3.name = "C3" | |
378 | c3.BrickColor = BrickColor.new("Lime green") | |
379 | c3.CanCollide = false | |
380 | c3.CFrame = per["Right Leg"].CFrame * CFrame.new(0,per["Right Leg"].Size.Y*-.25,0) | |
381 | weldparts(per["Right Leg"],c3) | |
382 | c3.Material = Enum.Material.Neon | |
383 | end | |
384 | ||
385 | if per:FindFirstChild("Left Leg") then | |
386 | local c4 = Instance.new("Part",per) | |
387 | c4.Size = Vector3.new(per["Left Leg"].Size.X*1.05,per["Left Leg"].Size.Y*.1,per["Left Leg"].Size.Z*1.05) | |
388 | c4.name = "C4" | |
389 | c4.BrickColor = BrickColor.new("Lime green") | |
390 | c4.CanCollide = false | |
391 | c4.CFrame = per["Left Leg"].CFrame * CFrame.new(0,per["Left Leg"].Size.Y*-.25,0) | |
392 | weldparts(per["Left Leg"],c4) | |
393 | c4.Material = Enum.Material.Neon | |
394 | end | |
395 | if owner.Character.Head:FindFirstChild("BGLabel") then | |
396 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = " " | |
397 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81) | |
398 | end | |
399 | else | |
400 | if per:FindFirstChild("C1") then | |
401 | per:FindFirstChild("C1"):Destroy() | |
402 | end | |
403 | if per:FindFirstChild("C2") then | |
404 | per:FindFirstChild("C2"):Destroy() | |
405 | end | |
406 | if per:FindFirstChild("C3") then | |
407 | per:FindFirstChild("C3"):Destroy() | |
408 | end | |
409 | if per:FindFirstChild("C4") then | |
410 | per:FindFirstChild("C4"):Destroy() | |
411 | end | |
412 | if per:FindFirstChild("LeftHand") then | |
413 | local c1 = Instance.new("Part",per) | |
414 | c1.Size = Vector3.new(per["LeftHand"].Size.X*1.05,per["LeftHand"].Size.Y*.1,per["LeftHand"].Size.Z*1.05) | |
415 | c1.name = "C1" | |
416 | c1.BrickColor = BrickColor.new("Lime green") | |
417 | c1.CanCollide = false | |
418 | c1.CFrame = per["LeftHand"].CFrame | |
419 | weldparts(per["LeftHand"],c1) | |
420 | c1.Material = Enum.Material.Neon | |
421 | end | |
422 | ||
423 | if per:FindFirstChild("RightHand") then | |
424 | local c2 = Instance.new("Part",per) | |
425 | c2.Size = Vector3.new(per["RightHand"].Size.X*1.05,per["RightHand"].Size.Y*.1,per["RightHand"].Size.Z*1.05) | |
426 | c2.name = "C2" | |
427 | c2.BrickColor = BrickColor.new("Lime green") | |
428 | c2.CanCollide = false | |
429 | c2.CFrame = per["RightHand"].CFrame | |
430 | weldparts(per["RightHand"],c2) | |
431 | c2.Material = Enum.Material.Neon | |
432 | end | |
433 | ||
434 | if per:FindFirstChild("RightFoot") then | |
435 | local c3 = Instance.new("Part",per) | |
436 | c3.Size = Vector3.new(per["RightFoot"].Size.X*1.05,per["RightFoot"].Size.Y*.1,per["RightFoot"].Size.Z*1.05) | |
437 | c3.name = "C3" | |
438 | c3.BrickColor = BrickColor.new("Lime green") | |
439 | c3.CanCollide = false | |
440 | c3.CFrame = per["RightFoot"].CFrame | |
441 | weldparts(per["RightFoot"],c3) | |
442 | c3.Material = Enum.Material.Neon | |
443 | end | |
444 | ||
445 | if per:FindFirstChild("LeftFoot") then | |
446 | local c4 = Instance.new("Part",per) | |
447 | c4.Size = Vector3.new(per["LeftFoot"].Size.X*1.05,per["LeftFoot"].Size.Y*.1,per["LeftFoot"].Size.Z*1.05) | |
448 | c4.name = "C4" | |
449 | c4.BrickColor = BrickColor.new("Lime green") | |
450 | c4.CanCollide = false | |
451 | c4.CFrame = per["LeftFoot"].CFrame | |
452 | weldparts(per["LeftFoot"],c4) | |
453 | c4.Material = Enum.Material.Neon | |
454 | end | |
455 | if owner.Character.Head:FindFirstChild("BGLabel") then | |
456 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = " " | |
457 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81) | |
458 | end | |
459 | end | |
460 | end | |
461 | ||
462 | host = per.Name | |
463 | onPerson=true | |
464 | else | |
465 | print("Uh oh!") | |
466 | end | |
467 | ConRe = false | |
468 | end | |
469 | else | |
470 | if game:GetService("Players"):FindFirstChild(host) then | |
471 | local per = game:GetService("Players"):FindFirstChild(host).Character | |
472 | local cCc = char:GetChildren() | |
473 | char:FindFirstChildWhichIsA('Humanoid',true).JumpPower = 25 | |
474 | char:FindFirstChildWhichIsA('Humanoid',true).Sit = false | |
475 | for _,v in pairs(cCc) do | |
476 | if v:IsA("MeshPart") or v:IsA("Part") then | |
477 | v.Massless = false | |
478 | end | |
479 | end | |
480 | char:FindFirstChildWhichIsA('Humanoid',true).PlatformStand = false | |
481 | if char.HumanoidRootPart:FindFirstChild("weld12pts") then | |
482 | char.HumanoidRootPart:FindFirstChild("weld12pts"):Destroy() | |
483 | end | |
484 | unwalk(host,false) | |
485 | ||
486 | if per:FindFirstChild("C1") then | |
487 | per:FindFirstChild("C1"):Destroy() | |
488 | end | |
489 | if per:FindFirstChild("C2") then | |
490 | per:FindFirstChild("C2"):Destroy() | |
491 | end | |
492 | if per:FindFirstChild("C3") then | |
493 | per:FindFirstChild("C3"):Destroy() | |
494 | end | |
495 | if per:FindFirstChild("C4") then | |
496 | per:FindFirstChild("C4"):Destroy() | |
497 | end | |
498 | if owner.Character.Head:FindFirstChild("BGLabel") then | |
499 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = " " | |
500 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(255, 255, 255) | |
501 | end | |
502 | end | |
503 | ||
504 | host = nil | |
505 | onPerson =false | |
506 | ConRe = false | |
507 | end | |
508 | elseif key=="r" then | |
509 | if host~=nil then | |
510 | if mouse.Target~=nil then | |
511 | local per = game:GetService("Players"):FindFirstChild(host).Character | |
512 | if per:FindFirstChild("Humanoid") then | |
513 | per:FindFirstChildWhichIsA('Humanoid',true):MoveTo(mouse.Hit.Position) | |
514 | end | |
515 | end | |
516 | end | |
517 | elseif key=="f" then | |
518 | if host~=nil then | |
519 | if ConRe == false then | |
520 | local per = game:GetService("Players"):FindFirstChild(host).Character | |
521 | if per:FindFirstChild("C1") then | |
522 | per:FindFirstChild("C1").BrickColor = BrickColor.new("Really red") | |
523 | end | |
524 | if per:FindFirstChild("C2") then | |
525 | per:FindFirstChild("C2").BrickColor = BrickColor.new("Really red") | |
526 | end | |
527 | if per:FindFirstChild("C3") then | |
528 | per:FindFirstChild("C3").BrickColor = BrickColor.new("Really red") | |
529 | end | |
530 | if per:FindFirstChild("C4") then | |
531 | per:FindFirstChild("C4").BrickColor = BrickColor.new("Really red") | |
532 | end | |
533 | unwalk(host,true) | |
534 | ConRe = true | |
535 | if owner.Character.Head:FindFirstChild("BGLabel") then | |
536 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = "Total Control" | |
537 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(255, 0, 0) | |
538 | end | |
539 | else | |
540 | local per = game:GetService("Players"):FindFirstChild(host).Character | |
541 | if per:FindFirstChild("C1") then | |
542 | per:FindFirstChild("C1").BrickColor = BrickColor.new("Lime green") | |
543 | end | |
544 | if per:FindFirstChild("C2") then | |
545 | per:FindFirstChild("C2").BrickColor = BrickColor.new("Lime green") | |
546 | end | |
547 | if per:FindFirstChild("C3") then | |
548 | per:FindFirstChild("C3").BrickColor = BrickColor.new("Lime green") | |
549 | end | |
550 | if per:FindFirstChild("C4") then | |
551 | per:FindFirstChild("C4").BrickColor = BrickColor.new("Lime green") | |
552 | end | |
553 | unwalk(host,false) | |
554 | ConRe = false | |
555 | if owner.Character.Head:FindFirstChild("BGLabel") then | |
556 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.Text = "Passive Control" | |
557 | owner.Character.Head:FindFirstChild("BGLabel").TextLabel.TextStrokeColor3 = Color3.fromRGB(0, 255, 81) | |
558 | end | |
559 | end | |
560 | end | |
561 | end | |
562 | end) | |
563 | char:FindFirstChildWhichIsA('Humanoid',true).Seated:Connect(function(bool) | |
564 | if bool==true then | |
565 | torso.Orientation = Vector3.new(0,0,0) | |
566 | torso["Right Shoulder"].C1 = CFrame.new(0.25,.25,-.25) * CFrame.fromOrientation(0,math.rad(90),0) | |
567 | torso["Left Shoulder"].C1 = CFrame.new(-0.25,.25,-.25)* CFrame.fromOrientation(0,math.rad(-90),0) | |
568 | torso["Left Hip"].C1 = CFrame.new(-0.75,.5,.5) * CFrame.fromOrientation(0,math.rad(-90),0) | |
569 | torso["Right Hip"].C1 = CFrame.new(0.75,.5,.5) * CFrame.fromOrientation(0,math.rad(90),0) | |
570 | else | |
571 | if onPerson==true then | |
572 | char:FindFirstChildWhichIsA('Humanoid',true).Sit = true | |
573 | local cphost = game:GetService("Players"):FindFirstChild(host).Character | |
574 | cphost:FindFirstChildWhichIsA("Humanoid").Jump = true | |
575 | else | |
576 | torso.Orientation = Vector3.new(0,0,0) | |
577 | torso["Right Shoulder"].C1 = CFrame.new(0.25,.5,0) * CFrame.fromOrientation(0,math.rad(90),0) | |
578 | torso["Left Shoulder"].C1 = CFrame.new(-0.25,.5,0)* CFrame.fromOrientation(0,math.rad(-90),0) | |
579 | torso["Left Hip"].C1 = CFrame.new(-0.75,0,0) * CFrame.fromOrientation(0,math.rad(-90),0) | |
580 | torso["Right Hip"].C1 = CFrame.new(0.75,0,0) * CFrame.fromOrientation(0,math.rad(90),0) | |
581 | end | |
582 | end | |
583 | ||
584 | end) | |
585 | char:FindFirstChildWhichIsA('Humanoid',true).Died:Connect(function() | |
586 | if onPerson==true then | |
587 | if game.PlaceId==843495510 or owner.UserId==180045431 then | |
588 | local hostc = game.Workspace:FindFirstChild(host) | |
589 | if hostc:FindFirstChild("Humanoid") then | |
590 | hostc:FindFirstChild("Humanoid").Health = 0 | |
591 | elseif hostc:FindFirstChild("Head") then | |
592 | hostc:FindFirstChild("Head"):Destroy() | |
593 | elseif hostc:FindFirstChild("UpperTorso") then | |
594 | hostc:FindFirstChild("UpperTorso"):Destroy() | |
595 | elseif hostc:FindFirstChild("Torso") then | |
596 | hostc:FindFirstChild("Torso"):Destroy() | |
597 | end | |
598 | end | |
599 | unwalk(host,false) | |
600 | ConRe = false | |
601 | end | |
602 | end) | |
603 | if host~=nil then | |
604 | local cphost = game:GetService("Players"):FindFirstChild(host).Character | |
605 | char:FindFirstChildWhichIsA('Humanoid',true).HealthChanged:Connect(function(hel) | |
606 | chost:FindFirstChildWhichIsA('Humanoid',true).Health = (char:FindFirstChildWhichIsA('Humanoid',true).Health*cphost:FindFirstChildWhichIsA('Humanoid',true).MaxHealth/char:FindFirstChildWhichIsA('Humanoid',true).MaxHealth) | |
607 | print(char:FindFirstChildWhichIsA('Humanoid',true).Health.." / "..char:FindFirstChildWhichIsA('Humanoid',true).MaxHealth) | |
608 | print(cphost:FindFirstChildWhichIsA('Humanoid',true).Health.." / "..cphost:FindFirstChildWhichIsA('Humanoid',true).MaxHealth) | |
609 | end) | |
610 | cphost:FindFirstChildWhichIsA('Humanoid',true).Died:Connect(function() | |
611 | local weldp = char.HumanoidRootPart:FindFirstChildWhichIsA("WeldConstraint") | |
612 | if weldp then | |
613 | welp:Destroy() | |
614 | end | |
615 | end) | |
616 | end | |
617 | end | |
618 | end |