Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

If statement not working and giving an error?

Asked by 4 years ago

Hi my if statement script isnt working any idea on how to fix it?

if script.Parent.Parent.pohi.CustomPhysicalProperties >= PhysicalProperties(1,0,0)
then script.Parent.Smoke.Color=Color3.new()(56, 56, 56)
end

Thanks for your time!

0
btw the error is Workspace.Laev 2.part.Script:1: attempt to call global 'PhysicalProperties' (a table value) admiral2001 36 — 4y
0
the PhysicalProperties table doesn't have a metatable with __call, so you have to use the constructor PhysicalProperties.new() theking48989987 2147 — 4y

Answer this question