Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createFakeCharacter(DisplayName)
- local Model0 = Instance.new("Model")
- local Part1 = Instance.new("Part") --Head
- local SpecialMesh2 = Instance.new("SpecialMesh")
- local Part3 = Instance.new("Part") --Torso
- local Part4 = Instance.new("Part")
- local Part5 = Instance.new("Part")
- local Part6 = Instance.new("Part")
- local Part7 = Instance.new("Part")
- local Part8 = Instance.new("Part")
- local CharacterMesh9 = Instance.new("CharacterMesh")
- local Pants10 = Instance.new("Pants")
- local Shirt11 = Instance.new("Shirt")
- local Humanoid12 = Instance.new("Humanoid")
- local Folder13 = Instance.new("Folder")
- local Folder14 = Instance.new("Folder")
- local Part15 = Instance.new("Part")
- local SpecialMesh16 = Instance.new("SpecialMesh")
- local AlignPosition17 = Instance.new("AlignPosition")
- local AlignOrientation18 = Instance.new("AlignOrientation")
- local Part19 = Instance.new("Part")
- local SpecialMesh20 = Instance.new("SpecialMesh")
- local AlignPosition21 = Instance.new("AlignPosition")
- local AlignOrientation22 = Instance.new("AlignOrientation")
- local Part23 = Instance.new("Part")
- local SpecialMesh24 = Instance.new("SpecialMesh")
- local AlignPosition25 = Instance.new("AlignPosition")
- local AlignOrientation26 = Instance.new("AlignOrientation")
- local Folder27 = Instance.new("Folder")
- local Part28 = Instance.new("Part") --CatTails
- local SpecialMesh29 = Instance.new("SpecialMesh")
- local AlignOrientation30 = Instance.new("AlignOrientation")
- local AlignPosition31 = Instance.new("AlignPosition")
- local Attachment32 = Instance.new("Attachment") --Head
- local Attachment33 = Instance.new("Attachment") --Hair
- local Attachment34 = Instance.new("Attachment") --Mask
- local Attachment35 = Instance.new("Attachment") --CatEars
- local Attachment36 = Instance.new("Attachment") --Torso
- local Attachment37 = Instance.new("Attachment") --CatTails
- Attachment32.Parent = Part1
- Attachment33.Parent = Part23
- Attachment34.Parent = Part15
- Attachment35.Parent = Part19
- Attachment36.Parent = Part3
- Attachment37.Parent = Part28
- Part23.CFrame = Part1.CFrame
- Part15.CFrame = Part1.CFrame
- Part19.CFrame = Part1.CFrame
- Part28.CFrame = Part3.CFrame
- Part23.Velocity = Vector3.new(0, 0, 0)
- Part15.Velocity = Vector3.new(0, 0, 0)
- Part19.Velocity = Vector3.new(0, 0, 0)
- Part28.Velocity = Vector3.new(0, 0, 0)
- AlignPosition17.Parent = Part15
- AlignPosition17.Attachment0 = Attachment34
- AlignPosition17.Attachment1 = Attachment32
- AlignPosition17.RigidityEnabled = true
- AlignOrientation18.Parent = Part15
- AlignOrientation18.Attachment0 = Attachment34
- AlignOrientation18.Attachment1 = Attachment32
- AlignOrientation18.RigidityEnabled = true
- AlignPosition21.Parent = Part19
- AlignPosition21.Attachment0 = Attachment35
- AlignPosition21.Attachment1 = Attachment32
- AlignPosition21.RigidityEnabled = true
- AlignOrientation22.Parent = Part19
- AlignOrientation22.Attachment0 = Attachment35
- AlignOrientation22.Attachment1 = Attachment32
- AlignOrientation22.RigidityEnabled = true
- AlignPosition25.Parent = Part23
- AlignPosition25.Attachment0 = Attachment33
- AlignPosition25.Attachment1 = Attachment32
- AlignPosition25.RigidityEnabled = true
- AlignOrientation26.Parent = Part23
- AlignOrientation26.Attachment0 = Attachment33
- AlignOrientation26.Attachment1 = Attachment32
- AlignOrientation26.RigidityEnabled = true
- AlignOrientation30.Parent = Part28
- AlignOrientation30.Attachment0 = Attachment37
- AlignOrientation30.Attachment1 = Attachment36
- AlignOrientation30.RigidityEnabled = true
- AlignPosition31.Parent = Part28
- AlignPosition31.Attachment0 = Attachment37
- AlignPosition31.Attachment1 = Attachment36
- AlignPosition31.RigidityEnabled = true
- Model0.Name = "Kuroneko"
- Model0.PrimaryPart = Part8
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(188.376953, 4.5, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(188.376953125, 4.5, -73.975280761719)
- Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part1.Size = Vector3.new(2, 1, 1)
- Part1.BrickColor = BrickColor.new("Institutional white")
- Part1.Material = Enum.Material.Sand
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Institutional white")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh2.Parent = Part1
- SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
- Part3.Name = "Torso"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(188.376953, 3, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.Position = Vector3.new(188.376953125, 3, -73.975280761719)
- Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part3.Size = Vector3.new(2, 2, 1)
- Part3.BrickColor = BrickColor.new("Institutional white")
- Part3.LeftParamA = 0
- Part3.LeftParamB = 0
- Part3.LeftSurface = Enum.SurfaceType.Weld
- Part3.Material = Enum.Material.Sand
- Part3.RightParamA = 0
- Part3.RightParamB = 0
- Part3.RightSurface = Enum.SurfaceType.Weld
- Part3.brickColor = BrickColor.new("Institutional white")
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.formFactor = Enum.FormFactor.Symmetric
- Part4.Name = "Left Arm"
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(186.876953, 3, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(186.876953125, 3, -73.975280761719)
- Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part4.Size = Vector3.new(1, 2, 1)
- Part4.BrickColor = BrickColor.new("Institutional white")
- Part4.Material = Enum.Material.Sand
- Part4.brickColor = BrickColor.new("Institutional white")
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.formFactor = Enum.FormFactor.Symmetric
- Part5.Name = "Right Arm"
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(189.876953, 3, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part5.Position = Vector3.new(189.876953125, 3, -73.975280761719)
- Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part5.Size = Vector3.new(1, 2, 1)
- Part5.BrickColor = BrickColor.new("Institutional white")
- Part5.Material = Enum.Material.Sand
- Part5.brickColor = BrickColor.new("Institutional white")
- Part5.FormFactor = Enum.FormFactor.Symmetric
- Part5.formFactor = Enum.FormFactor.Symmetric
- Part6.Name = "Left Leg"
- Part6.Parent = Model0
- Part6.CFrame = CFrame.new(187.876953, 1, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part6.Position = Vector3.new(187.876953125, 1, -73.975280761719)
- Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part6.Size = Vector3.new(1, 2, 1)
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Institutional white")
- Part6.Material = Enum.Material.Sand
- Part6.brickColor = BrickColor.new("Institutional white")
- Part6.FormFactor = Enum.FormFactor.Symmetric
- Part6.formFactor = Enum.FormFactor.Symmetric
- Part7.Name = "Right Leg"
- Part7.Parent = Model0
- Part7.CFrame = CFrame.new(188.876953, 1, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.Position = Vector3.new(188.876953125, 1, -73.975280761719)
- Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part7.Size = Vector3.new(1, 2, 1)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Institutional white")
- Part7.Material = Enum.Material.Sand
- Part7.brickColor = BrickColor.new("Institutional white")
- Part7.FormFactor = Enum.FormFactor.Symmetric
- Part7.formFactor = Enum.FormFactor.Symmetric
- Part8.Name = "HumanoidRootPart"
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(188.376953, 3, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part8.Position = Vector3.new(188.376953125, 3, -73.975280761719)
- Part8.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part8.Transparency = 1
- Part8.Size = Vector3.new(2, 2, 1)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Institutional white")
- Part8.LeftParamA = 0
- Part8.LeftParamB = 0
- Part8.Material = Enum.Material.Sand
- Part8.RightParamA = 0
- Part8.RightParamB = 0
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Institutional white")
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.formFactor = Enum.FormFactor.Symmetric
- CharacterMesh9.Parent = Model0
- CharacterMesh9.BodyPart = Enum.BodyPart.Torso
- CharacterMesh9.MeshId = 48112070
- Pants10.Name = "Pants"
- Pants10.Parent = Model0
- Pants10.PantsTemplate = "http://www.roblox.com/asset/?id=1210858273"
- Shirt11.Name = "Shirt"
- Shirt11.Parent = Model0
- Shirt11.ShirtTemplate = "http://www.roblox.com/asset/?id=1210857659"
- Humanoid12.Parent = Model0
- Humanoid12.HealthDisplayDistance = 0
- Humanoid12.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
- Humanoid12.LeftLeg = Part6
- Humanoid12.RightLeg = Part7
- Humanoid12.Torso = Part8
- Humanoid12.DisplayName = DisplayName
- Folder13.Name = "Accessories"
- Folder13.Parent = Model0
- Folder14.Name = "Head"
- Folder14.Parent = Folder13
- Part15.Name = "Mask_Accessory"
- Part15.Parent = Folder14
- Part15.CFrame = CFrame.new(188.375214, 4.50454998, -73.9776993, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part15.Position = Vector3.new(188.37521362305, 4.5045499801636, -73.977699279785)
- Part15.Size = Vector3.new(1, 1, 1)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.CanCollide = false
- Part15.Material = Enum.Material.Sand
- Part15.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh16.Name = "SpecialMesh"
- SpecialMesh16.Parent = Part15
- SpecialMesh16.MeshId = "rbxassetid://5728632913"
- SpecialMesh16.TextureId = "http://www.roblox.com/asset/?id=4809181158"
- SpecialMesh16.MeshType = Enum.MeshType.FileMesh
- Part19.Name = "CatEars_Accessory"
- Part19.Parent = Folder14
- Part19.CFrame = CFrame.new(188.376907, 5.1873703, -73.9569092, 1, -3.29228338e-25, 0, 3.29228338e-25, 1, 0, 0, 0, 1)
- Part19.Position = Vector3.new(188.37690734863, 5.187370300293, -73.956909179688)
- Part19.Size = Vector3.new(1.529000043869, 0.90399998426437, 0.50400000810623)
- Part19.BottomSurface = Enum.SurfaceType.Smooth
- Part19.CanCollide = false
- Part19.Material = Enum.Material.Sand
- Part19.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh20.Name = "SpecialMesh"
- SpecialMesh20.Parent = Part19
- SpecialMesh20.MeshId = "rbxassetid://6884739486"
- SpecialMesh20.Offset = Vector3.new(0, 0.5, 0)
- SpecialMesh20.TextureId = "http://www.roblox.com/asset/?id=6884796464"
- SpecialMesh20.MeshType = Enum.MeshType.FileMesh
- Part23.Name = "CaliforniaGirlHair_Accessory"
- Part23.Parent = Folder14
- Part23.CFrame = CFrame.new(188.376953, 3.79517221, -73.6959991, 1, 9.8568377e-15, -8.08289872e-16, -9.82961152e-15, 0.999588966, 0.0286718253, 1.09057112e-15, -0.0286718253, 0.999588966)
- Part23.Orientation = Vector3.new(-1.6399999856949, 0, 0)
- Part23.Position = Vector3.new(188.376953125, 3.7951722145081, -73.695999145508)
- Part23.Rotation = Vector3.new(-1.6399999856949, 0, 0)
- Part23.Size = Vector3.new(1, 1, 1)
- Part23.BottomSurface = Enum.SurfaceType.Smooth
- Part23.CanCollide = false
- Part23.Material = Enum.Material.Sand
- Part23.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh24.Name = "SpecialMesh"
- SpecialMesh24.Parent = Part23
- SpecialMesh24.MeshId = "rbxassetid://6521980205"
- SpecialMesh24.Scale = Vector3.new(0.94999998807907, 0.95999997854233, 0.91000002622604)
- SpecialMesh24.Offset = Vector3.new(0, -0.75, 0.3)
- SpecialMesh24.TextureId = "http://www.roblox.com/asset/?id=6517665515"
- SpecialMesh24.MeshType = Enum.MeshType.FileMesh
- Folder27.Name = "Torso"
- Folder27.Parent = Folder13
- Part28.Name = "CatTail_Accessory"
- Part28.Parent = Folder27
- Part28.CFrame = CFrame.new(188.376938, 1.52037835, -71.9532471, 1, -3.29228338e-25, 0, 3.29228338e-25, 1, 0, 0, 0, 1)
- Part28.Position = Vector3.new(188.37693786621, 1.5203783512115, -71.953247070313)
- Part28.Size = Vector3.new(0.78100001811981, 1.8250000476837, 3.4089999198914)
- Part28.BottomSurface = Enum.SurfaceType.Smooth
- Part28.CanCollide = false
- Part28.Material = Enum.Material.Sand
- Part28.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh29.Name = "SpecialMesh"
- SpecialMesh29.Parent = Part28
- SpecialMesh29.Offset = Vector3.new(0, -1.35, 2)
- SpecialMesh29.MeshId = "rbxassetid://6891780223"
- SpecialMesh29.TextureId = "http://www.roblox.com/asset/?id=6884796339"
- SpecialMesh29.MeshType = Enum.MeshType.FileMesh
- return Model0
- end
- repeat wait() until #game:GetService("Players"):GetPlayers() > 0
- local coms = {Instance.new("RemoteEvent",script),Instance.new("RemoteFunction",script),Instance.new("RemoteFunction",script)}
- local owner = owner or game:GetService("Players"):WaitForChild("plytalent")
- local FF = Instance.new("ForceField",owner.Character)
- local waitremote = Instance.new('RemoteEvent',script)
- local mainchar = createFakeCharacter(owner.DisplayName)
- local conchar = mainchar:Clone()
- FF.Visible = false
- local subevents={}
- local comsfuncs={
- function(plr, partname, partposition, partsize, partorientation)
- if plr ~= owner then
- return
- end
- if owner.Character.Parent then
- owner.Character.Parent = nil
- end
- if not conchar then
- conchar = mainchar:Clone()
- conchar.Parent = workspace
- return
- end
- if not conchar.Parent then
- conchar=nil
- return
- end
- if FF.Parent ~= owner.Character then
- FF = Instance.new("ForceField",owner.Character)
- FF.Visible = false
- end
- conchar.Name = "Ghost"
- local part = conchar:FindFirstChild(partname)
- if not part then
- conchar:Destroy()
- conchar = nil
- return
- end
- for _,p in pairs(conchar:GetDescendants())do
- if p:IsA("BasePart") then
- if p:GetNetworkOwner() ~= owner then
- p:SetNetworkOwner(owner)
- end
- if p.Name:find("_Accessory") then
- p.Size = mainchar:FindFirstChild(p.Name,true).Size
- end
- end
- end
- if part then
- if not subevents[part] then
- subevents[part] = part.Changed:Connect(function(property)
- if property == "Size" then
- local mainpart = mainchar:FindFirstChild(part.Name,true)
- if mainpart then
- part.Size = mainpart.Size
- end
- end
- end)
- end
- if not part:FindFirstChild("PartAlignPos") then
- part.Position = partposition
- local AlignPosition = Instance.new("AlignPosition",part)
- local AlignOrientation = Instance.new("AlignOrientation",part)
- AlignPosition.Name = "PartAlignPos"
- AlignOrientation.Name = "PartAlignOri"
- local attachment0 = Instance.new("Attachment",part)
- local attachment1 = Instance.new("Attachment",part)
- attachment1.Name = "attachment1"
- AlignOrientation.RigidityEnabled = true
- AlignPosition.RigidityEnabled = true
- AlignOrientation.Attachment0 = attachment0
- AlignOrientation.Attachment1 = attachment1
- AlignPosition.Attachment0 = attachment0
- AlignPosition.Attachment1 = attachment1
- end
- if partname == "HumanoidRootPart" then
- part.Transparency = 1
- else
- part.Transparency = 0.5
- end
- part.Name = partname
- if part:GetNetworkOwner() ~= owner then
- part:SetNetworkOwner(owner)
- end
- end
- end,
- function(plr)
- if plr ~= owner then
- return
- end
- return conchar
- end
- }
- coms[1].Name = "Com1"
- coms[2].Name = "Com2"
- coms[2].Name = "Com3"
- waitremote.Name = "WaitRemote"
- coms[2].OnServerInvoke = comsfuncs[2]
- coms[1].OnServerEvent:Connect(comsfuncs[1])
- NLS([==[
- local remote=script.Parent.Com1
- local com1 = script.Parent.Com2
- local com3 = script.Parent.Com3
- local owner = owner or game:GetService("Players").LocalPlayer
- game:GetService("RunService").RenderStepped:Connect(function()
- if owner.Character.Parent ~= workspace then
- owner.Character.Parent = workspace
- end
- end)
- local parttable={}
- local FF
- com3.OnClientInvoke = function(part)
- if character:FindFirstChild(part) then
- return character[part].Position
- end
- end
- game:GetService("RunService").Stepped:Connect(function()
- if not FF then
- FF = Instance.new("ForceField")
- end
- if not FF.Parent then
- FF = nil
- end
- if FF then
- FF.Visible = false
- end
- for _, part in pairs(owner.Character:GetChildren()) do
- coroutine.resume(coroutine.create(function()
- local part = part
- if part:IsA("BasePart") then
- remote:FireServer(part.Name, part.Position, part.Size, part.Orientation)
- end
- end))
- end
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- if com1:InvokeServer() then
- for _,part in pairs(com1:InvokeServer():GetDescendants()) do
- coroutine.resume(coroutine.create(function()
- if part:IsA("BasePart") then
- part.CanCollide = false
- if part:FindFirstChild("attachment1") then
- part.attachment1.Parent = owner.Character[part.Name]
- part.Position = owner.Character[part.Name].Position
- end
- elseif part:IsA("Humanoid") then
- part:Destroy()
- end
- end))
- end
- end
- end)
- script.Parent.WaitRemote:FireServer()
- ]==],script)
- game:GetService("RunService").Heartbeat:Connect(function()
- for i=1,#coms do
- if not coms[i].Parent then
- local ClassName = coms[i].ClassName
- coms[i] = Instance.new(ClassName,script)
- if ClassName == "RemoteEvent" then
- coms[i].OnServerEvent:Connect(comsfuncs[i])
- elseif ClassName == "RemoteFunction" then
- coms[i].OnServerInvoke = comsfuncs[i]
- end
- end
- if coms[i].Name ~= "Com" .. tostring(i) then
- coms[i].Name = "Com" .. tostring(i)
- end
- end
- end)
- script.Parent = owner.PlayerGui
- print("waiting")
- waitremote.OnServerEvent:Wait()
- print("Destroy! wait remote")
- waitremote:Destroy()
- owner.Character.Parent = nil
Add Comment
Please, Sign In to add comment