PLEASE HELP. Look, I have a parkour game but traps take time to kill you! I don’t know how to fix it, I already did what other developers told me, change everything to a single script instead of 5000 scripts and use CollectionService but the problem remains! To make sure it wasn’t a virus, I created another map and the same thing happened, I don’t know what it is, please help, I can’t attach files but you know what I’m talking about, I go through the trap and it takes 1 to 2 seconds in just kill you, and it’s not my device, since in Tower Of Hell the traps kill me as soon as I touch them. Please help! Ideas?
SCRIPT:
local CollectionService = game:GetService("CollectionService")
local TaggedParts = CollectionService:GetTagged("Trampa")
for _, TaggedPart in pairs(TaggedParts)do
TaggedPart.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:TakeDamage(100)
end
end)
end