All pastes #945762 Raw Edit

Unnamed

public lua v1 · immutable
·published 2008-03-17 04:45 UTC
rendered paste body
e = truefunction touched(hit)	if not e then return end	e = false	local h = hit.Parent:FindFirstChild("Humanoid")	if h ~= nil then		local wood = game.Workspace:FindFirstChild("Wood")		if wood ~= nil then			wood.Value = wood.Value + 1		end	end	wait(10)	e = trueendfunction chat(msg,speaker)	msg = msg:lower()	if msg == "check/wood" then		local wood = game.Workspace:FindFirstChild("Wood")		if wood ~= nil then			local m = Instance.new("Message")			m.Parent = speaker			m.Text = "You have "..wood.Value.." wood!"			wait(3)			m:Remove()		end	endendfunction entered(player)	player.Chatted:connect(function(msg) chat(msg,player) end)endgame.Players.PlayerAdded:connect(entered)script.Parent.Touched:connect(touched)