Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player= game:GetService("Players").LocalPlayer
- local Character = Player.Character
- local mouse = Player:GetMouse()
- remotetable={}
- wait(1)
- BODY = {}
- STUFF = nil
- PARENT = nil
- MATERIAL = nil
- COLOR = nil
- TRANSPARENCY = nil
- for _, c in pairs(Character:GetDescendants()) do
- if c:IsA("BasePart") and c.Name ~= "Handle" then
- 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
- c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
- end
- table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
- elseif c:IsA("JointInstance") then
- table.insert(BODY,{c,c.Parent,nil,nil,nil})
- end
- end
- for e = 1, #BODY do
- coroutine.resume(coroutine.create(function()
- if BODY[e] ~= nil then
- STUFF = BODY[e]
- PART = STUFF[1]
- PARENT = STUFF[2]
- MATERIAL = STUFF[3]
- COLOR = STUFF[4]
- TRANSPARENCY = STUFF[5]
- if PART.ClassName == "Part" and PART ~= Character.HumanoidRootPart then
- PART.Material = MATERIAL
- -- PART.Color = COLOR
- -- PART.Transparency = TRANSPARENCY
- end
- PART.AncestryChanged:Connect(function()
- PART.Parent = PARENT
- end)
- end
- end))
- end
- shirtpantremote= script.Parent:FindFirstChild("shirtpantremote")
- for i = 1, 10 do
- table.insert(remotetable,i,script.Parent:FindFirstChild(i))
- end
- count = 1
- position=game:GetService("RunService").Heartbeat:Connect(function()
- if Character.Parent~=workspace then
- Character.Parent =workspace
- end
- for i,v in pairs(workspace[game:GetService("Players").LocalPlayer.Name]:GetChildren())do
- if v:IsA("Part")or v:IsA("UnionOperation")then
- remotetable[count]:FireServer(v.Name,v.Size,v.CFrame,v.Color,{})
- count = count +1
- if count == 10 then
- remotetable[count]:FireServer(v.Name,v.Size,v.CFrame,v.Color,{})
- count=1
- end
- elseif v:IsA("Accessory") then
- if v:FindFirstChild("Handle") then
- 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})
- end
- end
- end
- if workspace:FindFirstChild(script.Parent.scripts.CharacterName.Value) then
- workspace:FindFirstChild(script.Parent.scripts.CharacterName.Value):Destroy()
- end
- end)
- refit=game:GetService("RunService").Heartbeat:Connect(function()
- x = workspace:FindFirstChild(Player.Name)
- if x and x ~= Player.Character then
- Player.Character = x
- end
- game:GetService("RunService").Heartbeat:wait()
- Character.Parent = workspace
- game:GetService("RunService").Heartbeat:wait()
- for e = 1, #BODY do
- if BODY[e] ~= nil then
- local STUFF = BODY[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local COLOR = STUFF[4]
- local TRANSPARENCY = STUFF[5]
- if PART.ClassName == "Part" and PART ~= Character.HumanoidRootPart then
- PART.Material = MATERIAL
- -- PART.Color = COLOR
- -- PART.Transparency = TRANSPARENCY
- end
- if PART.Parent ~= PARENT then
- Character:FindFirstChildOfClass("Humanoid"):remove()
- PART.Parent = PARENT
- Humanoid = Instance.new("Humanoid",Character)
- -- if not Character:FindFirstChild("Animate") then
- -- an = script.Animate:Clone()
- -- an.Disabled=false
- -- an.Parent = Character
- -- end
- if Character:FindFirstChild("Animate") then
- Character:FindFirstChild("Animate"):Destroy()
- end
- workspace.Camera.CameraSubject = Character:FindFirstChildOfClass("Humanoid")
- end
- end
- end
- end)
- Player.Character["Left Leg"]:Remove()
- --game:GetService("RunService").RenderStepped:Connect(function()
- -- if Character.Parent~=workspace then
- -- Character.Parent =workspace
- -- end
- -- for i,v in pairs(workspace[game:GetService("Players").LocalPlayer.Name]:GetChildren())do
- -- if v:IsA("Part")or v:IsA("UnionOperation")then
- -- remotetable[count]:FireServer(v.Name,v.Size,v.Position,v.Orientation,v.Color,{})
- -- count = count +1
- -- if count == 10 then
- -- remotetable[count]:FireServer(v.Name,v.Size,v.Position,v.Orientation,v.Color,{})
- -- count=1
- -- end
- -- elseif v:IsA("Accessory") then
- -- if v:FindFirstChild("Handle") then
- -- 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})
- -- end
- -- end
- -- end
- -- if workspace:FindFirstChild(" "..Player.Name.." ")then
- -- workspace:FindFirstChild(" "..Player.Name.." "):Destroy()
- -- end
- --end)
- --game:GetService("RunService").Stepped:Connect(function()
- -- if Character.Parent~=workspace then
- -- Character.Parent =workspace
- -- end
- -- for i,v in pairs(workspace[game:GetService("Players").LocalPlayer.Name]:GetChildren())do
- -- if v:IsA("Part")or v:IsA("UnionOperation")then
- -- remotetable[count]:FireServer(v.Name,v.Size,v.Position,v.Orientation,v.Color,{})
- -- count = count +1
- -- if count == 10 then
- -- remotetable[count]:FireServer(v.Name,v.Size,v.Position,v.Orientation,v.Color,{})
- -- count=1
- -- end
- -- elseif v:IsA("Accessory") then
- -- if v:FindFirstChild("Handle") then
- -- 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})
- -- end
- -- end
- -- end
- -- if workspace:FindFirstChild(" "..Player.Name.." ")then
- -- workspace:FindFirstChild(" "..Player.Name.." "):Destroy()
- -- end
- --end)
- --game:GetService("RunService").Heartbeat:Connect(function()
- -- if Character.Parent~=workspace then
- -- Character.Parent =workspace
- -- end
- -- for i,v in pairs(workspace[game:GetService("Players").LocalPlayer.Name]:GetChildren())do
- -- if v:IsA("Part")or v:IsA("UnionOperation")then
- -- remotetable[count]:FireServer(v.Name,v.Size,v.Position,v.Orientation,v.Color,{})
- -- count = count +1
- -- if count == 10 then
- -- remotetable[count]:FireServer(v.Name,v.Size,v.Position,v.Orientation,v.Color,{})
- -- count=1
- -- end
- -- elseif v:IsA("Accessory") then
- -- if v:FindFirstChild("Handle") then
- -- 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})
- -- end
- -- end
- -- end
- -- if workspace:FindFirstChild(" "..Player.Name.." ")then
- -- workspace:FindFirstChild(" "..Player.Name.." "):Destroy()
- -- end
- --end)
- coroutine.resume(coroutine.create(function()
- while true do
- wait(1)
- if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Shirt") then
- shirtpantremote:FireServer(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Shirt").ShirtTemplate,nil,nil)
- end
- if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Pants") then
- shirtpantremote:FireServer(nil,game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Pants").PantsTemplate,nil)
- end
- end
- end))
- spaceholded = false
- mouse.KeyDown:Connect(function(k)
- if k == "n" then
- 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)
- elseif k:byte() == 32 then
- spaceholded = true
- repeat
- Humanoid.Jump = true
- game:GetService("RunService").RenderStepped:Wait()
- until spaceholded == false
- end
- end)
- mouse.KeyUp:Connect(function(k)
- if k:byte() == 32 then
- spaceholded = false
- end
- end)
- function onJumpRequest()
- if not Character or not Humanoid or not Character:IsDescendantOf(workspace)then
- return
- end
- Humanoid.JumpPower = 50
- Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
- end
- game:GetService("UserInputService").JumpRequest:connect(onJumpRequest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement