crossbar
(crossbar)
August 7, 2023, 3:38pm
#1
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.
h ttps://create.roblox.com/docs/reference/engine/enums/CollisionFidelity
7 Likes
crossbar
(crossbar)
August 7, 2023, 3:42pm
#3
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
crossbar
(crossbar)
August 7, 2023, 3:48pm
#5
But is this how I am supposed to write it?
part.CollisionFidelity = "Default"
Sorry, I am quite bad with enums.
Also i’m pretty sure it works with anything except unions.
3 Likes
NobleBuild
(awkwardrobloxdude)
August 7, 2023, 3:49pm
#6
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
crossbar
(crossbar)
August 7, 2023, 3:52pm
#9
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
NobleBuild
(awkwardrobloxdude)
August 7, 2023, 3:57pm
#10
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
crossbar
(crossbar)
August 7, 2023, 3:59pm
#11
Yes, but it says unions. The part i’m trying to work with is just a normal part. I guess it doesn’t work for anything. Needs to be updated. Thanks though for the help guys.
1 Like
NobleBuild
(awkwardrobloxdude)
August 7, 2023, 4:01pm
#12
Any adjustment to CollisionFidelity will only work in-Studio, I think
(regular parts don’t have the CollisionFidelity property, they use Shape)
2 Likes
crossbar
(crossbar)
August 7, 2023, 4:03pm
#13
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.