Hello! I am wanting to know how I can detect the friction of a part and then enable a particle emitter once the friction is either higher or lower than a said value. All answers appreciated, thanks!
COMMUNITY QUESTION
How to I find the friction of a part and print("Test") the part when the friction is greater than 1?
1 answer
Try this out:
local part = workspace:FindFirstChildWhichIsA("BasePart", true)
local particle = workspace:FindFirstChildWhichIsA("ParticleEmitter", true)
if part.PhysicalProperties.Friction >= 1 and particle then
particle.Enabled = true
else
particle.Enabled = false
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
scripters here help you with your script, unless you have an example of an attempt you have made yourself, they probably will not answer you