I am having a issue with touch interests on a cloned part that is using collection service
There is no problem with collection service it is the issue with roblox not adding touch interests inside of the cloned object making it impossible to detect a touch on the tagged objects.
It prints collecting tags
then doesnt work on touches
local cs = game:GetService("CollectionService")
local tg = cs:GetTagged("spleefBlock")
game.ReplicatedStorage.Values.InRound.Changed:Connect(function()
if game.ReplicatedStorage.Values.InRound.Value == true then
print("Collecting tags")
for _, Taggedpart in pairs(tg) do
--print("hi")
--Taggedpart.BrickColor = BrickColor.random()
Taggedpart.Touched:Connect(function(hit)
print("touched")
if hit.Parent:FindFirstChild("Humanoid") then
local plr = hit.Parent
Taggedpart.Material = Enum.Material.Neon
--Taggedpart.BrickColor = BrickColor.random()
--Taggedpart.BrickColor = BrickColor.new("Really red")
local SB = game.ReplicatedStorage.MISCOBJECTS.SelectionBox:Clone()
SB.Parent = Taggedpart
SB.Adornee = Taggedpart
wait(1)
Taggedpart.Anchored = false
Taggedpart.CanCollide = false
wait(0.5)
Taggedpart:Destroy()
print("Apeared")
end
end)
end
end
end)