I’m cloning my character model and setting all the descendants CanCollide property to false however when I actually run the game and test it, the cloned character still just hits me and moves me around. I’ve confirmed that the property is actually being set to false with print statements but it’s still not working. Any clue why?
local uis = game:GetService("UserInputService")
local debris = game:GetService("Debris")
local rs = game:WaitForChild("ReplicatedStorage")
local trashFolder = game.Workspace:WaitForChild("Trash")
local fsRemote = rs:WaitForChild("flashstepRemote")
fsRemote.OnServerEvent:Connect(function(plr, char)
local hum = char:FindFirstChild("Humanoid")
local humRP = char:FindFirstChild("HumanoidRootPart")
char.Archivable = true
local function inFlashstep()
while true do
task.wait(.1)
local charClone = char:Clone()
for _, v in pairs(charClone:GetDescendants()) do
if not (v:IsA("BasePart")) then continue end
v.Anchored = true
v.CanCollide = false
print(v.CanCollide, v.Name)
end
charClone:PivotTo(char:GetPivot())
charClone.Parent = trashFolder
end
Also there’s nothing in any other script that interacts with the CanCollide