[ANSWERED] Why does the first IF work no matter what?
Asked by
6 years ago Edited 6 years ago
01 | local event = Instance.new( "RemoteEvent" ) |
02 | event.Parent = game.ReplicatedStorage |
04 | local player = game:GetService( "Players" ) |
05 | game.ReplicatedStorage.Level.OnServerEvent:connect( function (player) |
06 | local PStats = player:WaitForChild( "PStats" ) |
07 | local Layer = PStats.Layer |
08 | local TLayer = PStats.TLayer |
09 | if Layer.Value < 10000 and TLayer.Value ~ = 0 |
10 | or Layer.Value < 20000 and TLayer.Value ~ = 1 or |
11 | Layer.Value < 40000 and TLayer.Value ~ = 2 or |
12 | Layer.Value < 200000 and TLayer.Value ~ = 3 or |
13 | Layer.Value < 400000 and TLayer.Value ~ = 4 or |
14 | Layer.Value < 300000 and TLayer.Value ~ = 5 |
18 | if Layer.Value > = 10000 and TLayer.Value = = 0 |
19 | or Layer.Value > = 20000 and TLayer.Value = = 1 or |
20 | Layer.Value > = 40000 and TLayer.Value = = 2 or |
21 | Layer.Value > = 200000 and TLayer.Value = = 3 or |
22 | Layer.Value > = 400000 and TLayer.Value = = 4 or |
23 | Layer.Value > = 300000 and TLayer.Value = = 5 |
28 | TLayer.Value = TLayer.Value + 1 |
The issue is that no matter what it only prints not worthy