SColor=script.Parent.Settings:FindFirstChild("\083\116\097\114\116\067\111\108\111\114")RColor=script.Parent.Settings:FindFirstChild("\082\101\103\101\110\067\111\108\111\114")RTime=script.Parent.Settings:FindFirstChild("\082\101\103\101\110\084\105\109\101")Weapon=script.Parent.Settings:FindFirstChild("\087\101\097\112\111\110\078\097\109\101")Center=script.Parent.ColoredParts:FindFirstChild("\084\111\117\099\104\077\101")deb=false Center.Touched:connect(function(Q)if Q.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")then if Q.Parent.Humanoid.Health>0 then if game.Players:FindFirstChild(Q.Parent.Name)then if game.ServerStorage:FindFirstChild(Weapon.Value)then if deb==false then deb=true for Q,A in pairs(script.Parent.ColoredParts:GetChildren())do if A:IsA("\080\097\114\116")then A.BrickColor=RColor.Value end end local A=game.ServerStorage:FindFirstChild(Weapon.Value);(A:Clone()).Parent=(game.Players:FindFirstChild(Q.Parent.Name)).Backpack wait(RTime.Value)deb=false for Q,A in pairs(script.Parent.ColoredParts:GetChildren())do if A:IsA("\080\097\114\116")then A.BrickColor=SColor.Value end end end else print("\069\114\114\111\114\058 "..(Weapon.Value.." \110\111\116 \102\111\117\110\100 \105\110 \'\083\101\114\118\101\114\083\116\111\114\097\103\101\'\046"))end end end end end)
-----------------------------------------------------------------------------------------
--[[
Thanks for using Zed's Mesh Giver 2.0!

Instructions:
1) Find the mesh in you weapon. Generally it should be inside a brick called "Handle"
2) Copy and Paste that mesh into the scenebrick, remove the mesh currently in the scenebrick first.
3) Open up the settings folder in thsi model and edit the following settings:
	- Regen Time: Time it takes for a person to be able to use the giver again.
	- StartColor: Colour of the bricks that are currently blue.
	- RegenColor: Colour of the current blue bricks will be turned to a different color meaning its currently regenrating.
	- WeaponName: Copy and past the exact name of the weapon into the value of the WeaponName value.	
4) Cut and paste the weapon into ServerStorage
5) Done!	
----------------Don't edit below unless you know what you're doing--------------------------
--]]
SColor = script.Parent.Settings:FindFirstChild("StartColor")
RColor = script.Parent.Settings:FindFirstChild("RegenColor")
RTime = script.Parent.Settings:FindFirstChild("RegenTime")
Weapon = script.Parent.Settings:FindFirstChild("WeaponName")
Center = script.Parent.ColoredParts:FindFirstChild("TouchMe")
deb = false

Center.Touched:connect(function(part)
	if part.Parent:FindFirstChild("Humanoid") then
		if part.Parent.Humanoid.Health > 0 then
			if game.Players:FindFirstChild(part.Parent.Name) then
				if game.ServerStorage:FindFirstChild(Weapon.Value) then
					if deb == false then
						deb = true
						for i, v in pairs(script.Parent.ColoredParts:GetChildren()) do
							if v:IsA("Part") then
								v.BrickColor = RColor.Value
							end
						end
						local wep = game.ServerStorage:FindFirstChild(Weapon.Value)
						wep:Clone().Parent = game.Players:FindFirstChild(part.Parent.Name).Backpack
						wait(RTime.Value)
						deb = false
						for i, v in pairs(script.Parent.ColoredParts:GetChildren()) do
							if v:IsA("Part") then
								v.BrickColor = SColor.Value
							end
						end
					end
				else
					print("Error: " .. Weapon.Value .. " not found in 'ServerStorage'.")
				end
			end
		end
	end
end)
