Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a tool have cancollide equal to true?

When I change cancollide to true in the handle nothing happends. I've also made a script to set the cancollide to true but nothing happend. Can anyone help?

5 comments

0

No code = No help (Unless the question doesn't require code [which it should {Yeah please add code}])

1

just set the handle for can collide to true

0

read before commenting

0

Why do you need to set cancollide to true? It's best you set it to false, because people can easily glitch through walls if the cancollide is true.

0

I don't want to spoil the game idea but its good if people can glitch with the tools.

1 answer

for _, v in pairs(game:GetDescendants()) do
    pcall(function()
        if v:IsA("FrozenSword") then
            for _, x in pairs(v:GetDescendants()) do
                if x:IsA("BasePart") then
                    x.CanCollide = true
                end
            end
        end
    end)
end

I typed that in command bar

This discussion is preserved as it was. New answers, comments, and votes are closed.