How do I make it add smoke to the player 1 TIME ONLY when they click?
1 | --//Variables |
2 | local player = game.Players.LocalPlayer |
3 |
4 | --//Function |
5 | script.Parent.MouseButton 1 Click:connect( function () |
6 | local sm = Instance.new( "Smoke" ) |
7 | sm.Parent = player.Character.Torso |
8 |
9 | end ) |
Just check if there is already smoke in their torso. Add
1 | if not player.Character.Torso:FindFirstChild( 'Smoke' ) then |
before line 5 and add 'end' after line 7, but before the 'end)'