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

How do I make a script detect if an IntValue is above 200 or below 200?

Asked by 4 years ago

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function() if game.Workspace.Soldiers.Value == then print("Test") end end)

I'm not sure what to put between the == then.

0
Codeblocks EnzoTDZ_YT 275 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
 if game.Workspace.Soldiers.Value < 200 then
 print("not 200t") 
 elseif game.Workspace.Soldiers.Value > 200 then
 print("more than 200") 
end 
end)
0
yea i bother to answer therotatedo 19 — 4y
0
Sorry I am very noob at scripting thanks though CoolDude657898 9 — 4y
0
oh its alright, i was bad too at a point therotatedo 19 — 4y
Ad

Answer this question