I tried a bunch of different ways but no matter what I try CanCollide always goes off for all the players is there a way to make it just one player?
local h1 = game.Workspace.Kingdom.Hidden1
local h2 = game.Workspace.Kingdom.Hidden2
function onTouch(hit)
if hit.Parent:findFirstChild("Humanoid") then
h1.CanCollide = false
h2.CanCollide = false
end
end
game.Workspace.Kingdom.Carpet.Touched:connect(onTouch)

1 comment
This is in a local script sorry forgot to add that