Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local LogsGui = script.Parent.LogsGui
- local LogsFound = game.ReplicatedStorage.LogsFound
- script.Parent.Touched:Connect(function(Hit)
- if Hit.Parent:FindFirstChild("Humanoid") then
- local Character = Hit.Parent
- local player = game.Players:GetPlayerFromCharacter(Character)
- local Wood = player.Character:FindFirstChild("Log")
- LogsGui.logsLabel.Text = LogsFound.Value.." / 8"
- if Wood then
- Wood:Destroy()
- LogsFound.Value += 1
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement