Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there any way to use a .Touched and have CanCollide off?

Asked by 8 years ago

Every time I tried to use a .Touched it keeps the block out of other blocks yet it is supposed to have CanCollide off.

main.Touched:connect(function(touchedit)
            pcall(function()
                local characterthatthouched=touchedit.Parent
                local theplayer=game.Players:GetPlayerFromCharacter(characterthatthouched)
                theplayer.HealthValue.Value=theplayer.HealthValue.Value-100
                player.ExpValue.Value=player.ExpValue.Value+10
                if theplayer.HealthValue.Value<=0 then
                    player.ExpValue.Value=player.ExpValue.Value+100
                end
            end)
        end)
0
.Touched() works with CanCollide off, last I checked. drahsid5 250 — 8y
0
hmm User#600 0 — 8y
0
When I try it with a script it it just flies over thing.... I am using CFrames to create a projectile but when it hits something it goes around or over User#600 0 — 8y
0
When I try it with CFrames it is as if CanCollide is on... User#600 0 — 8y

Answer this question