So this is the error that It displays: "12:46:54.259 - Workspace.Grill.Trigger.Script:8: attempt to index local 'player' (a nil value)"
Here is the script:
local Trigger = workspace:WaitForChild("Grill"):WaitForChild("Trigger")
Trigger.Touched:connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if hit.Parent.Name == "Raw Meat" then
for i = 5,0,-1 do
print(player.Name)
player.Character.Humanoid.WalkSpeed = 0
wait(1)
end
end
end)

3 comments
Strange. Player is already defined as a variable.
I know
@Void_Frost Not working.