Advertisement
plytalent

Faceless One

Jan 31st, 2020
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.08 KB | None | 0 0
  1. local Player= game:GetService("Players").LocalPlayer
  2. local Character = Player.Character
  3. local mouse = Player:GetMouse()
  4. remotetable={}
  5. wait(1)
  6. BODY = {}
  7. STUFF = nil
  8. PARENT = nil
  9. MATERIAL = nil
  10. COLOR = nil
  11. TRANSPARENCY = nil
  12. for _, c in pairs(Character:GetDescendants()) do
  13.     if c:IsA("BasePart") and c.Name ~= "Handle" then
  14.         if c ~= Character.HumanoidRootPart and c ~= Character.Torso and c ~= Character.Head and c ~= Character["Right Arm"] and c ~= Character["Left Arm"] and c ~= Character["Right Leg"] and c ~= Character["Left Leg"] then
  15.             c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  16.         end
  17.         table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  18.     elseif c:IsA("JointInstance") then
  19.         table.insert(BODY,{c,c.Parent,nil,nil,nil})
  20.     end
  21. end
  22. for e = 1, #BODY do
  23.     coroutine.resume(coroutine.create(function()
  24.         if BODY[e] ~= nil then
  25.             STUFF = BODY[e]
  26.             PART = STUFF[1]
  27.             PARENT = STUFF[2]
  28.             MATERIAL = STUFF[3]
  29.             COLOR = STUFF[4]
  30.             TRANSPARENCY = STUFF[5]
  31.             if PART.ClassName == "Part" and PART ~= Character.HumanoidRootPart then
  32.                 PART.Material = MATERIAL
  33. --              PART.Color = COLOR
  34. --              PART.Transparency = TRANSPARENCY
  35.             end
  36.             PART.AncestryChanged:Connect(function()
  37.                 PART.Parent = PARENT
  38.             end)
  39.         end
  40.     end))
  41. end
  42. shirtpantremote= script.Parent:FindFirstChild("shirtpantremote")
  43. for i = 1, 10 do
  44.     table.insert(remotetable,i,script.Parent:FindFirstChild(i))
  45. end
  46. count = 1
  47. position=game:GetService("RunService").Heartbeat:Connect(function()
  48.     if Character.Parent~=workspace then
  49.         Character.Parent =workspace
  50.     end
  51.     for i,v in pairs(workspace[game:GetService("Players").LocalPlayer.Name]:GetChildren())do
  52.         if v:IsA("Part")or v:IsA("UnionOperation")then
  53.                 remotetable[count]:FireServer(v.Name,v.Size,v.CFrame,v.Color,{})
  54.                 count = count +1
  55.             if count == 10 then
  56.                 remotetable[count]:FireServer(v.Name,v.Size,v.CFrame,v.Color,{})
  57.                 count=1
  58.             end
  59.         elseif v:IsA("Accessory") then
  60.             if v:FindFirstChild("Handle") then
  61.                 remotetable[count]:FireServer("Accessory "..v.Name,v.Handle.Size,v.Handle.CFrame,v.Handle.Color,{Scale=v.Handle.Mesh.Scale,MeshId=v.Handle.Mesh.MeshId,Offset=v.Handle.Mesh.Offset,VertexColor=v.Handle.Mesh.VertexColor,TextureId=v.Handle.Mesh.TextureId})
  62.             end
  63.         end
  64.     end
  65.     if workspace:FindFirstChild(script.Parent.scripts.CharacterName.Value) then
  66.         workspace:FindFirstChild(script.Parent.scripts.CharacterName.Value):Destroy()
  67.     end
  68. end)
  69. refit=game:GetService("RunService").Heartbeat:Connect(function()
  70.     x = workspace:FindFirstChild(Player.Name)
  71.     if x  and x ~= Player.Character then
  72.     Player.Character = x
  73.     end
  74.     game:GetService("RunService").Heartbeat:wait()
  75.     Character.Parent = workspace
  76.     game:GetService("RunService").Heartbeat:wait()
  77.     for e = 1, #BODY do
  78.         if BODY[e] ~= nil then
  79.             local STUFF = BODY[e]
  80.             local PART = STUFF[1]
  81.             local PARENT = STUFF[2]
  82.             local MATERIAL = STUFF[3]
  83.             local COLOR = STUFF[4]
  84.             local TRANSPARENCY = STUFF[5]
  85.             if PART.ClassName == "Part" and PART ~= Character.HumanoidRootPart then
  86.                 PART.Material = MATERIAL
  87. --              PART.Color = COLOR
  88. --              PART.Transparency = TRANSPARENCY
  89.             end
  90.             if PART.Parent ~= PARENT then
  91.                 Character:FindFirstChildOfClass("Humanoid"):remove()
  92.                 PART.Parent = PARENT
  93.                 Humanoid = Instance.new("Humanoid",Character)
  94. --              if not Character:FindFirstChild("Animate") then
  95. --                  an = script.Animate:Clone()
  96. --                  an.Disabled=false
  97. --                  an.Parent = Character
  98. --              end
  99.                 if Character:FindFirstChild("Animate") then
  100.                     Character:FindFirstChild("Animate"):Destroy()
  101.                 end
  102.                 workspace.Camera.CameraSubject = Character:FindFirstChildOfClass("Humanoid")
  103.             end
  104.         end
  105.     end
  106. end)
  107. Player.Character["Left Leg"]:Remove()
  108. --game:GetService("RunService").RenderStepped:Connect(function()
  109. --  if Character.Parent~=workspace then
  110. --      Character.Parent =workspace
  111. --  end
  112. --  for i,v in pairs(workspace[game:GetService("Players").LocalPlayer.Name]:GetChildren())do
  113. --      if v:IsA("Part")or v:IsA("UnionOperation")then
  114. --              remotetable[count]:FireServer(v.Name,v.Size,v.Position,v.Orientation,v.Color,{})
  115. --              count = count +1
  116. --          if count == 10 then
  117. --              remotetable[count]:FireServer(v.Name,v.Size,v.Position,v.Orientation,v.Color,{})
  118. --              count=1
  119. --          end
  120. --      elseif v:IsA("Accessory") then
  121. --          if v:FindFirstChild("Handle") then
  122. --              remotetable[count]:FireServer("Accessory "..v.Name,v.Handle.Size,v.Handle.Position,v.Handle.Orientation,v.Handle.Color,{Scale=v.Handle.Mesh.Scale,MeshId=v.Handle.Mesh.MeshId,Offset=v.Handle.Mesh.Offset,VertexColor=v.Handle.Mesh.VertexColor,TextureId=v.Handle.Mesh.TextureId})
  123. --          end
  124. --      end
  125. --  end
  126. --  if workspace:FindFirstChild(" "..Player.Name.." ")then
  127. --      workspace:FindFirstChild(" "..Player.Name.." "):Destroy()
  128. --  end
  129. --end)
  130. --game:GetService("RunService").Stepped:Connect(function()
  131. --  if Character.Parent~=workspace then
  132. --      Character.Parent =workspace
  133. --  end
  134. --  for i,v in pairs(workspace[game:GetService("Players").LocalPlayer.Name]:GetChildren())do
  135. --      if v:IsA("Part")or v:IsA("UnionOperation")then
  136. --              remotetable[count]:FireServer(v.Name,v.Size,v.Position,v.Orientation,v.Color,{})
  137. --              count = count +1
  138. --          if count == 10 then
  139. --              remotetable[count]:FireServer(v.Name,v.Size,v.Position,v.Orientation,v.Color,{})
  140. --              count=1
  141. --          end
  142. --      elseif v:IsA("Accessory") then
  143. --          if v:FindFirstChild("Handle") then
  144. --              remotetable[count]:FireServer("Accessory "..v.Name,v.Handle.Size,v.Handle.Position,v.Handle.Orientation,v.Handle.Color,{Scale=v.Handle.Mesh.Scale,MeshId=v.Handle.Mesh.MeshId,Offset=v.Handle.Mesh.Offset,VertexColor=v.Handle.Mesh.VertexColor,TextureId=v.Handle.Mesh.TextureId})
  145. --          end
  146. --      end
  147. --  end
  148. --  if workspace:FindFirstChild(" "..Player.Name.." ")then
  149. --      workspace:FindFirstChild(" "..Player.Name.." "):Destroy()
  150. --  end
  151. --end)
  152. --game:GetService("RunService").Heartbeat:Connect(function()
  153. --  if Character.Parent~=workspace then
  154. --      Character.Parent =workspace
  155. --  end
  156. --  for i,v in pairs(workspace[game:GetService("Players").LocalPlayer.Name]:GetChildren())do
  157. --      if v:IsA("Part")or v:IsA("UnionOperation")then
  158. --              remotetable[count]:FireServer(v.Name,v.Size,v.Position,v.Orientation,v.Color,{})
  159. --              count = count +1
  160. --          if count == 10 then
  161. --              remotetable[count]:FireServer(v.Name,v.Size,v.Position,v.Orientation,v.Color,{})
  162. --              count=1
  163. --          end
  164. --      elseif v:IsA("Accessory") then
  165. --          if v:FindFirstChild("Handle") then
  166. --              remotetable[count]:FireServer("Accessory "..v.Name,v.Handle.Size,v.Handle.Position,v.Handle.Orientation,v.Handle.Color,{Scale=v.Handle.Mesh.Scale,MeshId=v.Handle.Mesh.MeshId,Offset=v.Handle.Mesh.Offset,VertexColor=v.Handle.Mesh.VertexColor,TextureId=v.Handle.Mesh.TextureId})
  167. --          end
  168. --      end
  169. --  end
  170. --  if workspace:FindFirstChild(" "..Player.Name.." ")then
  171. --      workspace:FindFirstChild(" "..Player.Name.." "):Destroy()
  172. --  end
  173. --end)
  174. coroutine.resume(coroutine.create(function()
  175.     while true do
  176.         wait(1)
  177.         if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Shirt") then
  178.             shirtpantremote:FireServer(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Shirt").ShirtTemplate,nil,nil)
  179.         end
  180.         if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Pants") then
  181.             shirtpantremote:FireServer(nil,game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Pants").PantsTemplate,nil)
  182.         end
  183.     end
  184. end))
  185. spaceholded = false
  186. mouse.KeyDown:Connect(function(k)
  187.     if k == "n" then
  188.         Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.Hit.p.X,mouse.Hit.p.Y+1.5,mouse.Hit.p.Z),Character.Torso.CFrame.p)
  189.     elseif k:byte() == 32 then
  190.         spaceholded = true
  191.         repeat
  192.             Humanoid.Jump = true
  193.             game:GetService("RunService").RenderStepped:Wait()
  194.         until spaceholded == false
  195.     end
  196. end)
  197. mouse.KeyUp:Connect(function(k)
  198.     if k:byte() == 32 then
  199.         spaceholded = false
  200.     end
  201. end)
  202. function onJumpRequest()
  203.     if not Character or not Humanoid or not Character:IsDescendantOf(workspace)then
  204.         return
  205.     end
  206.     Humanoid.JumpPower = 50
  207.     Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  208. end
  209. game:GetService("UserInputService").JumpRequest:connect(onJumpRequest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement