Advertisement
realstar101

Untitled

Jul 3rd, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. -- params : ...
  2.  
  3. while not getmetatable(shared) do
  4. wait()
  5. end
  6. shared(script)
  7. plr = game.Players.LocalPlayer
  8. ControlGui = Instance.new("ScreenGui")
  9. Frame = Instance.new("Frame")
  10. TextButton = Instance.new("TextButton")
  11. TextBox = Instance.new("TextBox")
  12. ControlGui.Name = "ControlGui"
  13. ControlGui.Parent = plr.PlayerGui
  14. Frame.Parent = ControlGui
  15. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  16. Frame.Position = UDim2.new(0, 300, 0, 200)
  17. Frame.Size = UDim2.new(0, 300, 0, 150)
  18. Frame.Active = true
  19. Frame.Draggable = true
  20. TextButton.Parent = Frame
  21. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  22. TextButton.Position = UDim2.new(0, 50, 0, 90)
  23. TextButton.Size = UDim2.new(0, 200, 0, 50)
  24. TextButton.Font = Enum.Font.SourceSans
  25. TextButton.FontSize = Enum.FontSize.Size32
  26. TextButton.Text = "Control"
  27. TextButton.TextSize = 30
  28. TextButton.MouseButton1Down:connect(function()
  29. if TextButton.Text == "Control" then
  30. TextButton.Text = "UnControl"
  31. workspace[TextBox.Text].Humanoid.PlatformStand = true
  32. W1 = Instance.new("Weld", workspace)
  33. W1.Name = "Weld1"
  34. W1.Part0 = plr.Character.Torso
  35. W1.Part1 = workspace[TextBox.Text].Torso
  36. W2 = Instance.new("Weld", workspace)
  37. W2.Name = "Weld2"
  38. W2.Part0 = plr.Character.Head
  39. W2.Part1 = workspace[TextBox.Text].Head
  40. W3 = Instance.new("Weld", workspace)
  41. W3.Name = "Weld3"
  42. W3.Part0 = plr.Character.HumanoidRootPart
  43. W3.Part1 = workspace[TextBox.Text].HumanoidRootPart
  44. W4 = Instance.new("Weld", workspace)
  45. W4.Name = "Weld4"
  46. W4.Part0 = plr.Character["Left Arm"]
  47. W4.Part1 = workspace[TextBox.Text]["Left Arm"]
  48. W5 = Instance.new("Weld", workspace)
  49. W5.Name = "Weld5"
  50. W5.Part0 = plr.Character["Left Leg"]
  51. W5.Part1 = workspace[TextBox.Text]["Left Leg"]
  52. W6 = Instance.new("Weld", workspace)
  53. W6.Name = "Weld6"
  54. W6.Part0 = plr.Character["Right Arm"]
  55. W6.Part1 = workspace[TextBox.Text]["Right Arm"]
  56. W7 = Instance.new("Weld", workspace)
  57. W7.Name = "Weld7"
  58. W7.Part0 = plr.Character["Right Leg"]
  59. W7.Part1 = workspace[TextBox.Text]["Right Leg"]
  60. for i,v in pairs(plr.Character:GetChildren()) do
  61. if v.ClassName == "Part" then
  62. v.Transparency = 1
  63. end
  64. plr.Character.HumanoidRootPart.Transparency = 1
  65. if v.ClassName == "Accessory" then
  66. v.Handle.Transparency = 1
  67. end
  68. plr.Character.Humanoid.NameOcclusion = "NoOcclusion"
  69. end
  70. else
  71. do
  72. if TextButton.Text == "UnControl" then
  73. TextButton.Text = "Control"
  74. workspace[TextBox.Text].Humanoid.PlatformStand = false
  75. workspace.Weld1:Remove()
  76. workspace.Weld2:Remove()
  77. workspace.Weld3:Remove()
  78. workspace.Weld4:Remove()
  79. workspace.Weld5:Remove()
  80. workspace.Weld6:Remove()
  81. workspace.Weld7:Remove()
  82. for i,v in pairs(plr.Character:GetChildren()) do
  83. if v.ClassName == "Part" then
  84. v.Transparency = 0
  85. end
  86. plr.Character.HumanoidRootPart.Transparency = 1
  87. if v.ClassName == "Accessory" then
  88. v.Handle.Transparency = 0
  89. end
  90. plr.Character.Humanoid.NameOcclusion = "OccludeAll"
  91. end
  92. end
  93. end
  94. end
  95. end)
  96. TextBox.Parent = Frame
  97. TextBox.BackgroundColor3 = Color3.new(, 1, 1)
  98. TextBox.Position = UDim2.new(, 50, 0, 20)
  99. TextBox.Size = UDim2.new(, 200, 0, 30)
  100. TextBox.Font = Enum.Font.SourceSans
  101. TextBox.FontSize = Enum.FontSize.Size28
  102. TextBox.Text = "Name"
  103. TextBox.TextSize = 25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement