Ghosts - Because it wasn't good enough with just dying

One time I was thinking

“hmm… what does roblox need that isn’t needed?”

and it hit me.

G H O S T S


Now, if you’re thinking
“But why?”
I say
“Why not?”

Also, this could be useful for just fun games or horror ones
Now, these only create the model. You can interact with stuff like inventory yourself

--# Ghost
--# By @jasperagent, AKA @TheCookiezO
--# If you copy this.. I'll try to stop you? I can't be bothered to pay for Copyright loll


--# Whenever a player respawns

workspace.ChildRemoved:Connect(function()
	local Character
	workspace.ChildAdded:Connect(function(C)
		Character = C
	end)
	wait(1)
	local isPlayer = (game.Players:FindFirstChild(Character.Name))
	if (isPlayer) then
		--# Setup Ghost
		local Player = game.Players:FindFirstChild(Character.Name)
		Character.Archivable = true --# Allow us to actually clone the character
		local Clone = Character:Clone()
		for _, Part in pairs(Clone:GetChildren()) do
			if (Part:IsA("BasePart")) then
				Part.Color = Color3.fromRGB(236, 236, 236)
				Part.Transparency = 0.6
				Part.Anchored = true
				Part.CanCollide = false
			end
			
			if (Part:IsA("Accessory")) then
				local AccessoryPart
				for _, AccessoryP in pairs(Part:GetChildren()) do
					if (AccessoryP:IsA("BasePart")) then
						AccessoryPart = AccessoryP
					end
				end
				AccessoryPart.Color = Color3.fromRGB(236, 236, 236)
				AccessoryPart.Transparency = 0.6
				AccessoryPart.Anchored = true
				AccessoryPart.CanCollide = false
			end
		end
		local Humanoid : Humanoid = Clone:WaitForChild("Humanoid")
		Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
		Clone.Parent = workspace
	end
end)

https://roblox.com/library/9687822135/ghost

6 Likes

Can you show what this looks like using screenshots/videos?

Right now it isn’t clear if the ghosts are NPCs or players when they die, Nor do we have any idea how anything behaves.

Hi! Sorry about this, but the current code is not the full version, as I have seen. I’m currently setting up the NPC version which moves around. However, as for the code currently produced on here, it’s just a model which is lifeless- like I said, I accidentally copied the wrong script- sorry once more.

Edit: Not copied, but I had 2 scripts and I got the wrong one. I didn’t steal the source code–

1 Like

Seems cool! I think this is useful for some ghost survival game.