This is the script where it is happening.
--Variables
local log = script.Parent
local logGuard = false
local function onTouch(partTouched)
local character = partTouched.Parent
local humanoid = character:FindFirstChildWhichIsA("Humanoid")
local player = game.Players:GetPlayerFromCharacter(humanoid.Parent)
local playerStats = player:FindFirstChild("leaderstats")
local playerLogCount = playerStats:FindFirstChild("Has Log")
if humanoid and logGuard == false then
log.Transparency = 1
log.CanCollide = false
logGuard = true
playerLogCount.Value = 1
print ("You have collected a log!")
wait (5)
log.Transparency = 0
log.CanCollide = true
logGuard = false
print ("You can pick up another log")
end --End if Humanoid statement
end --End onTouch function

1 comment
Please use a code block it is so hard to read if you just paste it as text.