It will fall through the ground when Anchored is set to false and CanCollide to false. you should change Anchored property to true and it should work.
Well, I don’t want it to be anchored. I want the part to not collide with players, but collide with everything else.
You can Anchor the part on client and not on the server.
What would that do, and how would I do it?
Change this:
to this:
game:GetService("Workspace").ChildAdded:Connect(function(child)
for i, v in pairs(child:GetDescendants()) do
if v.Name == "PartNameHere" and v:IsA("Part") then
v.Anchored = true
v.CanCollide = false
end
end
end)
Non of this is working. Is there a script that I could put into the part?
Not really as LocalScripts do not run in Workspace.
Can you tell me the errors in output at least?
holy moly i did it myself, all i had to do was just edit the main script. ill make yours a solution though
You should use this:
game:GetService("Workspace").ChildAdded:Connect(function(child)
for i, v in pairs(child:GetDescendants()) do
if v.Name == "PartNameHere" and v:IsA("Part") then
v.Anchored = true
v.CanCollide = false
end
end
if child.Name == "PartNameHere" and child:IsA("Part") then
child.Anchored = true
child.CanCollide = false
end
end)
instead of: