xxxxxxxxxx
-- This script checks if a part named 'Part' in
-- the workspace has the tag 'Deadly'
local CollectionService = game:GetService("CollectionService")
local object = workspace.Part
if CollectionService:HasTag(object, "Deadly") then
print(object:GetFullName() .. " is deadly")
end