I’m trying to print a returned string statement that is a stringvalue, however it seems to print You're either Char1 or Char2!
even when my stringvalue is nil
function GameEngine.GetType(Player: Player?)
if Player then
if game:GetService("ServerStorage"):FindFirstChild(Player.Name.. "'s Data") then
return game:GetService("ServerStorage"):FindFirstChild(Player.Name.. "'s Data"):FindFirstChild("CharacterType").Value
end
end
end
---
local engine = require(game:GetService("ServerScriptService"):FindFirstChild("Modules"):FindFirstChild("__HANDLER"))
script.Parent.ProximityPrompt.TriggerEnded:Connect(function(__PLAYER)
if engine.GetType(__PLAYER) == "Char1" or "Char2" then
print("You're either Char1 or Char2!")
end
end)