How do I change CollisionFidelity using script?

Hello everyone, so this is a really simple question. Is this how to change the part’s CollisionFidelity property using a script?

part.CollisionFidelity = "Default"

I get an error, this is what it says: The current thread cannot write ‘CollisionFidelity’ (lacking capability Plugin). I don’t know what this means.

So what can I do to set a part’s CollisionFidelity using script? Thank you.

6 Likes

It says on Roblox documentation: The CollisionFidelity property of union objects is not scriptable: it must be set in Studio.

https://create.roblox.com/docs/reference/engine/enums/CollisionFidelity

7 Likes

Yes… my part is not a union. Thanks.

6 Likes

I think it could be referenced to Meshpart as well. Try it with a union and see if it’s the same error.

2 Likes

But is this how I am supposed to write it?

part.CollisionFidelity = "Default"

Sorry, I am quite bad with enums. :confused:

Also i’m pretty sure it works with anything except unions.

3 Likes

I think it’s Enum.CollisionFidelity.Valuehere

3 Likes

It should be good but you can try Part.CollisionFidelity = Enum.CollisionFidelity.Default

3 Likes

You just dont.

If you really want to; have a clone of your part, change the CollisionFidelity, put it in replicated storage(all of this in studio, not in script)

and pivot it to the Old version when u wanna change it (this in script)

2 Likes

Okay i’ve done that now but I still keep getting this error:

The current thread cannot write ‘CollisionFidelity’ (lacking capability Plugin)

Does anyone know what this means? Am I supposed to install a plugin for this to work?? Thanks guys.

EDIT: Oh wait, I think this error means you can’t change the property through a script

2 Likes

It only works in-Studio, in-game requires

@DefaultBrain 's solution to this problem!

This post needs 2 solved answers, @DoorsPro_Bacon’s being the other current option! Both smart problem solving solutions

2 Likes

Yes, but it says unions. The part i’m trying to work with is just a normal part. :confused: I guess it doesn’t work for anything. Needs to be updated. Thanks though for the help guys.

1 Like

Any adjustment to CollisionFidelity will only work in-Studio, I think
(regular parts don’t have the CollisionFidelity property, they use Shape)

2 Likes

EDIT: Nvm, found a way guys. I just anchored the part.

3 Likes

You can write a quick Plugin to solve this, Plugins have higher access.