Trying to make it so that when a player hovers over another player they can see the player’s zone(and the zone moves around with them). I tried using an attachment but this just doesn’t show when in game. Are there any other ways to do this? My code:
local function showKillzone(target)
if target.Parent:FindFirstChild("Humanoid") then
if selectedTarget == target.Parent then return end
--destroyAttachment(selectedTarget)
local attachment = Parts.Part.Attachment:Clone()
attachment.Parent = target.Parent:FindFirstChild("LeftLowerLeg")
attachment.Killzone.Anchored = true
attachment.Killzone.Name = "Killzone"
selectedTarget = target.Parent
print(target.Parent)
end
end
mouse.Move:Connect(function()
local target = mouse.Target
if not target then return end
showKillzone(target)
end)