I was making an RPG-Roleplay game, but then I came across this issue while debugging something else.
game.ReplicatedStorage.PressedE.OnServerEvent:Connect(function()
if (HRP.Position - Part.Position).magnitude < 4.5 then
if player.PlayerGui:FindFirstChild('Job').Value == "Lumberjack" then
TreeInteraction()
end
else
game.ReplicatedStorage.NotJob:FireClient(player)
print("does not have job of lumberjack")
end
end)
Apparently, even though I manually set the Job.Value to 'Lumberjack' (spelling is correct, I checked.), the script says that the value is not 'Lumberjack'.
The script is in a Union called Tree, and is a ServerScript.
Any help please..?
