It is false until i pick up the raw patty as expected
edit
added that into the script
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local RS = game:GetService("ReplicatedStorage")
local CookPatty2 = RS.Events:WaitForChild("CookPatty2")
CookPatty2.OnServerEvent:Connect(function(Accused)
print("Someone has placed a Raw Patty. Accused : "..Accused.Name)
if Accused.HasRawPatty.Value == true and game.Workspace.Grill.GrillTop.FirstSpot.Occupied.Value == false then
print("Grill FirstSpot Patty")
game.Workspace.Grill.GrillTop.FirstSpot.PattyPlaceholder.Transparency = 0
else if Accused.HasRawPatty.Value == true and game.Workspace.Grill.GrillTop.SecondSpot.Occupied.Value == false then
print("Grill SecondSpot Patty")
game.Workspace.Grill.GrillTop.SecondSpot.PattyPlaceholder.Transparency = 0
else
print(Accused.Name.." has no spaces on the grill / has an error occured")
local FirstSpot = game.Workspace.Grill.GrillTop.FirstSpot.Occupied
local StringFirstSpot = tostring(FirstSpot.Value)
print("First Spot Current Value \t "..StringFirstSpot)
local SecondSpot = game.Workspace.Grill.GrillTop.SecondSpot.Occupied
local StringSecondSpot = tostring(SecondSpot.Value)
print("Second Spot Current Value \t "..StringSecondSpot)
local HasRawPatty = Accused.HasRawPatty
local StringHasRawPatty = tostring(HasRawPatty.Value)
print("HasRawPatty Current Value \t "..StringHasRawPatty)
end
end
end)
Here is console after I take a RawPatty and place it on the grill only once.
17:46:37.717 CookPatty Fire Client 1 - Server - Grill:16
17:46:37.767 Someone has placed a Raw Patty. Accused : eggspIicit - Server - CookBurger:7
17:46:37.767 eggspIicit has no spaces on the grill / has an error occured - Server - CookBurger:16
17:46:37.767 First Spot Current Value true - Server - CookBurger:21
17:46:37.768 Second Spot Current Value false - Server - CookBurger:26
17:46:37.768 HasRawPatty Current Value false - Server - CookBurger:31