Hello,
Today I was making a dynamic sight system, via function in module. And now I have some questions about modules and their lacks of premissions.
So, I accidentally found out it by this code:
return {
comp = {
AimChanged = function(state: boolean, Weapon: Tool)
local sight = Weapon:FindFirstChild("Sight", true)
if state == true then
sight.DoubleSided = true
else
sight.DoubleSided = false
end
end,
}
}
I was coding this on my phone so dont blame me ![]()
Whenever player toggles aim, this function is being called with true or false in state. Everything seems alright, until one moment; an error that says you can’t set DoubleSided for meshparts though module.
That’s really sad for me.
Why DoubleSided property can’t be set though module? And where could I view those properties which are under lua protection?
