Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1/30)
- --Player
- local player = game.Players.LocalPlayer
- 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 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(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 = gcharacter
- end
- end
- local ghead = gcharacter.Head
- local gtorso = gcharacter.Torso
- local gleftarm = gcharacter["Left Arm"]
- local grightarm = gcharacter["Right Arm"]
- local gleftleg = gcharacter["Left Leg"]
- local grightleg = gcharacter["Right Leg"]
- 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), 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