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

Why isn't this if/then statment working? Also it dosen't give any errors? [Solved]

This simple if/then statement isn't working. It also doesn't print any errors. I can't figure out what's wrong with it

local Event = game.ReplicatedStorage.Tools.GiveGun
local Gun = game.ServerStorage.Tools.Gun

Event.OnServerEvent:Connect(function(Player)
	if Player.Stats.Gun.Value == false then
		print("Gun isn't unlocked.")
	end
end)

3 comments

0

Please include all operating code, like the local script that's calling the event.

0

If you solved a question then put [Solved] or [Answered] in the begining or end of the question

1 answer

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