Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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.

1 comment

0

Codeblocks

1 answer

✓ Accepted answer
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)

3 comments

0

yea i bother to answer

0

Sorry I am very noob at scripting thanks though

0

oh its alright, i was bad too at a point

This discussion is preserved as it was. New answers, comments, and votes are closed.