Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1/30)
- --Player
- local player = game.Players.Unyuho
- local character = player.Character
- --Limbs
- local head = character.Head
- local torso = character.Torso
- local rootpart = character.HumanoidRootPart
- local leftarm = character["Left Arm"]
- local rightarm = character["Right Arm"]
- local leftleg = character["Left Leg"]
- local rightleg = character["Right Leg"]
- --Useful Functions
- local function Mesh(meshname, parent, scale)
- local meshy = Instance.new("SpecialMesh")
- if scale ~= nil then
- meshy.Scale = scale
- end
- meshy.MeshType = meshname
- meshy.Name = "Meshy"
- meshy.Parent = parent
- end
- --Person
- local bcharacter = Instance.new("Model")
- bcharacter.Name = "Fake Character 2"
- bcharacter.Parent = workspace
- for i,v in pairs(character:GetChildren()) do
- if v:IsA("Part") and v ~= rootpart then
- local clone = v:Clone()
- for i,b in pairs(clone:GetChildren()) do
- if not b:IsA("SpecialMesh") then
- b:Destroy()
- end
- end
- clone.CFrame = CFrame.new((v.Position + Vector3.new(4,0.5,0)) + (torso.CFrame.lookVector * -5.5)) * CFrame.Angles(math.rad(v.Orientation.x), math.rad(v.Orientation.y), math.rad(v.Orientation.z))
- clone.BrickColor = BrickColor.new("Really black")
- clone.Transparency = 0.5
- clone.Name = v.Name
- clone.CanCollide = false
- clone.Anchored = true
- clone.Parent = bcharacter
- end
- end
- --Person 2
- local gcharacter = Instance.new("Model")
- gcharacter.Name = "Fake Character"
- gcharacter.Parent = workspace
- for i,v in pairs(character:GetChildren()) do
- if v:IsA("Part") and v ~= rootpart then
- local clone = v:Clone()
- for i,b in pairs(clone:GetChildren()) do
- if not b:IsA("SpecialMesh") then
- b:Destroy()
- end
- end
- clone.CFrame = CFrame.new((v.Position + Vector3.new(9,0.5,0)) + (torso.CFrame.lookVector * -5.5)) * CFrame.Angles(math.rad(v.Orientation.x), math.rad(v.Orientation.y), math.rad(v.Orientation.z))
- clone.BrickColor = BrickColor.new("Really black")
- clone.Transparency = 0.5
- clone.CanCollide = false
- clone.Name = v.Name
- clone.Anchored = true
- clone.Parent = gcharacter
- end
- end
- while true do
- for i,b in pairs(gcharacter:GetChildren()) do
- b.CFrame = b.CFrame:lerp(character:FindFirstChild(b.Name).CFrame, 0.3)
- b.CFrame = b.CFrame:lerp(CFrame.new(b.Position + (torso.CFrame.lookVector * -1.5) + (torso.CFrame.rightVector * -2.5), character:FindFirstChild(b.Name).Position + (character:FindFirstChild(b.Name).CFrame.lookVector * 1000000000000)), 0.3)
- local shadowclone = b:Clone()
- shadowclone.Name = b.Name
- shadowclone.Parent = workspace
- coroutine.resume(coroutine.create(function()
- for i=1,10 do
- shadowclone.Transparency = shadowclone.Transparency + ((1/30) * i)
- shadowclone.CFrame = shadowclone.CFrame:lerp(b.CFrame, i / 50)
- wait()
- end
- shadowclone:Destroy()
- end))
- end
- for i,b in pairs(bcharacter:GetChildren()) do
- b.CFrame = b.CFrame:lerp(character:FindFirstChild(b.Name).CFrame, 0.3)
- b.CFrame = b.CFrame:lerp(CFrame.new(b.Position + (torso.CFrame.lookVector * -1.5) + (torso.CFrame.rightVector * 2.5), character:FindFirstChild(b.Name).Position + (character:FindFirstChild(b.Name).CFrame.lookVector * 1000000000000)), 0.3)
- local shadowclone = b:Clone()
- shadowclone.Name = b.Name
- shadowclone.Parent = workspace
- coroutine.resume(coroutine.create(function()
- for i=1,10 do
- shadowclone.Transparency = shadowclone.Transparency + ((1/30) * i)
- shadowclone.CFrame = shadowclone.CFrame:lerp(b.CFrame, i / 50)
- wait()
- end
- shadowclone:Destroy()
- end))
- end
- wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement