DrawingJhon

Control player

Aug 5th, 2020 (edited)
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.02 KB | None | 0 0
  1. local plr = owner
  2. local TextBox = {Text = "DrawingJhon"}
  3.  
  4.     workspace[TextBox.Text].Humanoid.PlatformStand = true
  5.     W1 = Instance.new("Weld",workspace)
  6.     W1.Name = "Weld1"
  7.     W1.Part0 = plr.Character.Torso
  8.     W1.Part1 = workspace[TextBox.Text].Torso
  9.     W2 = Instance.new("Weld",workspace)
  10.     W2.Name = "Weld2"
  11.     W2.Part0 = plr.Character.Head
  12.     W2.Part1 = workspace[TextBox.Text].Head
  13.     W3 = Instance.new("Weld",workspace)
  14.     W3.Name = "Weld3"
  15.     W3.Part0 = plr.Character.HumanoidRootPart
  16.     W3.Part1 = workspace[TextBox.Text].HumanoidRootPart
  17.     W4 = Instance.new("Weld",workspace)
  18.     W4.Name = "Weld4"
  19.     W4.Part0 = plr.Character["Left Arm"]
  20.     W4.Part1 = workspace[TextBox.Text]["Left Arm"]
  21.     W5 = Instance.new("Weld",workspace)
  22.     W5.Name = "Weld5"
  23.     W5.Part0 = plr.Character["Left Leg"]
  24.     W5.Part1 = workspace[TextBox.Text]["Left Leg"]
  25.     W6 = Instance.new("Weld",workspace)
  26.     W6.Name = "Weld6"
  27.     W6.Part0 = plr.Character["Right Arm"]
  28.     W6.Part1 = workspace[TextBox.Text]["Right Arm"]
  29.     W7 = Instance.new("Weld",workspace)
  30.     W7.Name = "Weld7"
  31.     W7.Part0 = plr.Character["Right Leg"]
  32.     W7.Part1 = workspace[TextBox.Text]["Right Leg"]
  33.     for i,v in pairs(plr.Character:GetChildren()) do
  34.             if v.ClassName == "Part" then
  35.                 v.Transparency = 1
  36.             end
  37.             plr.Character.HumanoidRootPart.Transparency = 1
  38.             if v.ClassName == "Accessory" then
  39.                 v.Handle.Transparency = 1
  40.             end
  41.             plr.Character.Humanoid.NameOcclusion = "NoOcclusion"
  42.     end
  43.     --elseif TextButton.Text == "UnControl" then
  44.     TextButton.Text = "Control"
  45.     workspace[TextBox.Text].Humanoid.PlatformStand = false
  46.     workspace.Weld1:Remove()
  47.     workspace.Weld2:Remove()
  48.     workspace.Weld3:Remove()
  49.     workspace.Weld4:Remove()
  50.     workspace.Weld5:Remove()
  51.     workspace.Weld6:Remove()
  52.     workspace.Weld7:Remove()
  53.     for i,v in pairs(plr.Character:GetChildren()) do
  54.             if v.ClassName == "Part" then
  55.                 v.Transparency = 0
  56.             end
  57.             plr.Character.HumanoidRootPart.Transparency = 1
  58.             if v.ClassName == "Accessory" then
  59.                 v.Handle.Transparency = 0
  60.             end
  61.             plr.Character.Humanoid.NameOcclusion = "OccludeAll"
  62.     end
Add Comment
Please, Sign In to add comment