--Ignore above


local function place(plr, name, location, prefabs, cframe, c)
	local item = prefabs:FindFirstChild(name):Clone()
	item.PrimaryPart.CanCollide = false
	item:SetPrimaryPartCFrame(cframe)
	
	ChangeTransparency(item, 1)
	
	item.Parent = location
	
	if c then
		if not checkHitbox(plr.Character, item) then
			ChangeTransparency(item, 0)
			
			item.PrimaryPart.Transparency = 1
			
			return true
		else
			item:Destroy()
			
			return false
		end
	else
		ChangeTransparency(item, 0)
			
		item.PrimaryPart.Transparency = 1
			
		return true
	end
end

game.ReplicatedStorage.Remotes.place.OnServerInvoke = place
