Advertisement
95audrey

Untitled

Mar 9th, 2016
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. --Editing this will result in breaking the script, any questions PM Anacallagon
  2.  
  3. make = script.Parent
  4. head = make:findFirstChild("HeadWeld")
  5. leftarm = make:findFirstChild("LeftArmWeld")
  6. rightarm = make:findFirstChild("RightArmWeld")
  7. leftleg = make:findFirstChild("LeftLegWeld")
  8. rightleg = make:findFirstChild("RightLegWeld")
  9. torso = make:findFirstChild("TorsoWeld")
  10. p = script.Parent.Parent.Parent
  11. char = p.Character
  12. names = script.Parent:findFirstChild("Allowance")
  13.  
  14. local adminTable = {}
  15.  
  16. local adminList = script.Parent.Allowance.Value
  17. function loadAdminTable()
  18. for a in string.gmatch(adminList, "[^,]+") do
  19. adminTable[a:lower()] = true
  20. end
  21. end
  22.  
  23. loadAdminTable()
  24.  
  25. part = script.Parent:FindFirstChild("Activate")
  26. --touch = false
  27.  
  28. --[[if part == nil then
  29. repeat wait() until char -- waits until player actually exists
  30. touch.Value = true
  31. elseif part ~= nil then
  32. part.Touched:connect(function(hit)
  33. h = hit.Parent:findFirstChild("Humanoid")
  34. if h ~= nil then
  35. touch.Value = true
  36. end
  37. end)
  38. end]]--
  39.  
  40. repeat wait() until char
  41.  
  42. if (adminTable[p.Name:lower()]) then
  43. if head ~= nil then
  44. head2 = head:Clone()
  45. head2.Parent = p.Character
  46. weld1 = Instance.new("Weld", head2:findFirstChild("Handle"))
  47. weld1.Part0 = head2:findFirstChild("Handle")
  48. weld1.Part1 = p.Character:findFirstChild("Head")
  49. -- header = head:GetChildren()
  50. --[[ for c = 1, #header do
  51. if header[c].ClassName == "Part" then
  52. header[c].Anchored = false
  53. header[c].CanCollide = false
  54. end
  55. end]]--
  56. end
  57. if leftarm ~= nil then
  58. leftarm2 = leftarm:Clone()
  59. leftarm2.Parent = p.Character
  60. weld2 = Instance.new("Weld", leftarm2:findFirstChild("Handle"))
  61. weld2.Part0 = leftarm2:findFirstChild("Handle")
  62. weld2.Part1 = p.Character:findFirstChild("Left Arm")
  63. -- la = leftarm:GetChildren()
  64. --[[ for c = 1, #la do
  65. if la[c].ClassName == "Part" then
  66. la[c].Anchored = false
  67. la[c].CanCollide = false
  68. end
  69. end]]--
  70. end
  71. if rightarm ~= nil then
  72. rightarm2 = rightarm:Clone()
  73. rightarm2.Parent = p.Character
  74. weld3 = Instance.new("Weld", rightarm2:findFirstChild("Handle"))
  75. weld3.Part0 = rightarm2:findFirstChild("Handle")
  76. weld3.Part1 = p.Character:findFirstChild("Right Arm")
  77. -- ra = rightarm:GetChildren()
  78. --[[ for c = 1, #ra do
  79. if ra[c].ClassName == "Part" then
  80. ra[c].Anchored = false
  81. ra[c].CanCollide = false
  82. end
  83. end]]--
  84. end
  85. if leftleg ~= nil then
  86. leftleg2 = leftleg:Clone()
  87. leftleg2.Parent = p.Character
  88. weld4 = Instance.new("Weld", leftleg2:findFirstChild("Handle"))
  89. weld4.Part0 = leftleg2:findFirstChild("Handle")
  90. weld4.Part1 = p.Character:findFirstChild("Left Leg")
  91. -- ll = rightarm:GetChildren()
  92. --[[ for c = 1, #ll do
  93. if ll[c].ClassName == "Part" then
  94. ll[c].Anchored = false
  95. ll[c].CanCollide = false
  96. end
  97. end]]--
  98. end
  99. if rightleg ~= nil then
  100. rightleg2 = rightleg:Clone()
  101. rightleg2.Parent = p.Character
  102. weld5 = Instance.new("Weld", rightleg2:findFirstChild("Handle"))
  103. weld5.Part0 = rightleg2:findFirstChild("Handle")
  104. weld5.Part1 = p.Character:findFirstChild("Right Leg")
  105. -- rl = rightarm:GetChildren()
  106. --[[ for c = 1, #rl do
  107. if rl[c].ClassName == "Part" then
  108. rl[c].Anchored = false
  109. rl[c].CanCollide = false
  110. end
  111. end]]--
  112. end
  113. if torso ~= nil then
  114. torso2 = torso:Clone()
  115. torso2.Parent = p.Character
  116. weld6 = Instance.new("Weld", torso2:findFirstChild("Handle"))
  117. weld6.Part0 = torso2:findFirstChild("Handle")
  118. weld6.Part1 = p.Character:findFirstChild("Torso")
  119. -- t = rightarm:GetChildren()
  120. --[[ for c = 1, #t do
  121. if t[c].ClassName == "Part" then
  122. t[c].Anchored = false
  123. t[c].CanCollide = false
  124. end
  125. end--]]
  126. end
  127. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement