Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Where do I put this script in?

location = CFrame.new(0, 0, 0) players = game:GetService("Players") for i, v in pairs(players:GetChildren()) do if v.Character() ~= nil then char = v.Character if char:FindFirstChild("Torso") ~= nil then

        v.Torso.Anchored = true

        wait()

        v.Torso.CFrame = location

        wait()
        v.Torso.Anchored = false

    end

end

end

I need to add a part where if a player dies a small message at the top of the screen pops up saying "Alpha Died or "Bravo died"

2 answers

✓ Accepted answer

You can create a Hint (object) to send this message. Though hints are under appreciated, since you can use Gui's instead. Anyhow, here's how to do it with Hints :

location = CFrame.new(0, 0, 0) 
players = game:GetService("Players") 
for i, v in pairs(players:GetChildren()) do
	if v.Character() ~= nil then 
		char = v.Character 
		if char:FindFirstChild("Torso") ~= nil then
 			char.Torso.Anchored = true
			wait()
			char.Torso.CFrame = location
        		wait()
	        	char.Torso.Anchored = false
			local h = Instance.new("Hint",workspace)
			h.Text = v.Name.." has died."
			wait(5)
			h:Destroy()
		end
	end
end

This discussion is preserved as it was. New answers, comments, and votes are closed.