When I have less than 100 points, I still get smoke to my torso. I am supose to have more than 100 points..
--//Variables
local player = game.Players.LocalPlayer
points = player.Points
--//Function
script.Parent.MouseButton1Click:connect(function()
if not player.Character.Torso:FindFirstChild('Smoke') then
local sm = Instance.new("Smoke")
sm.Size = .1
sm.Opacity = .1
sm.Parent = player.Character.Torso
end
if points.Value > 100 then --100 = price
script.Parent.Text = "Smoke"
points.Value = points.Value - 100
else
script.Parent.Text = "Not enough points!"
wait(2)
script.Parent.Text = "Smoke: 100 Points"
end
end)

5 comments
You're making smoke happeb before you give it the condition so @LetThereBeCode is right
He did not answer..
I am on tablet so I answered in chat
To repeat, put lines 6-11 under line 12
I fixed it