Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to I find the friction of a part and print("Test") the part when the friction is greater than 1?

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!

1 comment

0

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

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.